зеркало из https://github.com/electron/electron.git
34 строки
934 B
C++
34 строки
934 B
C++
// Copyright (c) 2017 GitHub, Inc.
|
|
// Use of this source code is governed by the MIT license that can be
|
|
// found in the LICENSE file.
|
|
|
|
#ifndef ATOM_BROWSER_NATIVE_BROWSER_VIEW_VIEWS_H_
|
|
#define ATOM_BROWSER_NATIVE_BROWSER_VIEW_VIEWS_H_
|
|
|
|
#include "atom/browser/native_browser_view.h"
|
|
|
|
namespace atom {
|
|
|
|
class NativeBrowserViewViews : public NativeBrowserView {
|
|
public:
|
|
explicit NativeBrowserViewViews(
|
|
brightray::InspectableWebContentsView* web_contents_view);
|
|
~NativeBrowserViewViews() override;
|
|
|
|
uint8_t GetAutoResizeFlags() { return auto_resize_flags_; }
|
|
void SetAutoResizeFlags(uint8_t flags) override {
|
|
auto_resize_flags_ = flags;
|
|
}
|
|
void SetBounds(const gfx::Rect& bounds) override;
|
|
void SetBackgroundColor(SkColor color) override;
|
|
|
|
private:
|
|
uint8_t auto_resize_flags_;
|
|
|
|
DISALLOW_COPY_AND_ASSIGN(NativeBrowserViewViews);
|
|
};
|
|
|
|
} // namespace atom
|
|
|
|
#endif // ATOM_BROWSER_NATIVE_BROWSER_VIEW_VIEWS_H_
|