OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CHROME_BROWSER_UI_VIEWS_FRAME_NATIVE_BROWSER_FRAME_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_FRAME_NATIVE_BROWSER_FRAME_H_ |
6 #define CHROME_BROWSER_UI_VIEWS_FRAME_NATIVE_BROWSER_FRAME_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_FRAME_NATIVE_BROWSER_FRAME_H_ |
7 | 7 |
8 #include "ui/base/ui_base_types.h" | 8 #include "ui/base/ui_base_types.h" |
9 #include "ui/gfx/geometry/rect.h" | 9 #include "ui/gfx/geometry/rect.h" |
10 #include "ui/views/widget/widget.h" | 10 #include "ui/views/widget/widget.h" |
11 | 11 |
12 class BrowserFrame; | 12 class BrowserFrame; |
13 class BrowserView; | |
14 | 13 |
15 namespace content { | 14 namespace content { |
16 struct NativeWebKeyboardEvent; | 15 struct NativeWebKeyboardEvent; |
17 } | 16 } |
18 | 17 |
19 namespace views { | |
20 class NativeWidget; | |
21 } | |
22 | |
23 class NativeBrowserFrame { | 18 class NativeBrowserFrame { |
24 public: | 19 public: |
25 virtual ~NativeBrowserFrame() {} | 20 virtual ~NativeBrowserFrame() {} |
26 | 21 |
27 // Returns the platform specific InitParams for initializing our widget. | 22 // Returns the platform specific InitParams for initializing our widget. |
28 virtual views::Widget::InitParams GetWidgetParams() = 0; | 23 virtual views::Widget::InitParams GetWidgetParams() = 0; |
29 | 24 |
30 // Returns |true| if we should use the custom frame. | 25 // Returns |true| if we should use the custom frame. |
31 virtual bool UseCustomFrame() const = 0; | 26 virtual bool UseCustomFrame() const = 0; |
32 | 27 |
(...skipping 18 matching lines...) Expand all Loading... |
51 | 46 |
52 protected: | 47 protected: |
53 friend class BrowserFrame; | 48 friend class BrowserFrame; |
54 | 49 |
55 // BrowserFrame pass-thrus --------------------------------------------------- | 50 // BrowserFrame pass-thrus --------------------------------------------------- |
56 // See browser_frame.h for documentation: | 51 // See browser_frame.h for documentation: |
57 virtual int GetMinimizeButtonOffset() const = 0; | 52 virtual int GetMinimizeButtonOffset() const = 0; |
58 }; | 53 }; |
59 | 54 |
60 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_NATIVE_BROWSER_FRAME_H_ | 55 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_NATIVE_BROWSER_FRAME_H_ |
OLD | NEW |