1 // Copyright (c) 2017 GitHub, Inc.
2 // Use of this source code is governed by the MIT license that can be
3 // found in the LICENSE file.
5 #ifndef ATOM_BROWSER_NATIVE_BROWSER_VIEW_H_
6 #define ATOM_BROWSER_NATIVE_BROWSER_VIEW_H_
8 #include "base/macros.h"
9 #include "third_party/skia/include/core/SkColor.h"
12 class InspectableWebContentsView;
25 enum AutoResizeFlags {
26 kAutoResizeWidth = 0x1,
27 kAutoResizeHeight = 0x2,
30 class NativeBrowserView {
32 virtual ~NativeBrowserView();
34 static NativeBrowserView* Create(
35 brightray::InspectableWebContentsView* web_contents_view);
37 brightray::InspectableWebContentsView* GetInspectableWebContentsView() {
38 return web_contents_view_;
41 virtual void SetAutoResizeFlags(uint8_t flags) = 0;
42 virtual void SetBounds(const gfx::Rect& bounds) = 0;
43 virtual void SetBackgroundColor(SkColor color) = 0;
46 explicit NativeBrowserView(
47 brightray::InspectableWebContentsView* web_contents_view);
49 brightray::InspectableWebContentsView* web_contents_view_;
52 DISALLOW_COPY_AND_ASSIGN(NativeBrowserView);
57 #endif // ATOM_BROWSER_NATIVE_BROWSER_VIEW_H_