OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_BROWSER_FRAME_ASH_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_FRAME_ASH_H_ |
6 #define CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_FRAME_ASH_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_FRAME_ASH_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 | 9 |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
(...skipping 20 matching lines...) Expand all Loading... |
31 | 31 |
32 protected: | 32 protected: |
33 // Overridden from views::NativeWidgetAura: | 33 // Overridden from views::NativeWidgetAura: |
34 void OnWindowTargetVisibilityChanged(bool visible) override; | 34 void OnWindowTargetVisibilityChanged(bool visible) override; |
35 | 35 |
36 // Overridden from NativeBrowserFrame: | 36 // Overridden from NativeBrowserFrame: |
37 views::Widget::InitParams GetWidgetParams() override; | 37 views::Widget::InitParams GetWidgetParams() override; |
38 bool UseCustomFrame() const override; | 38 bool UseCustomFrame() const override; |
39 bool UsesNativeSystemMenu() const override; | 39 bool UsesNativeSystemMenu() const override; |
40 int GetMinimizeButtonOffset() const override; | 40 int GetMinimizeButtonOffset() const override; |
| 41 int GetMinimizeButtonHeight() const override; |
41 bool ShouldSaveWindowPlacement() const override; | 42 bool ShouldSaveWindowPlacement() const override; |
42 void GetWindowPlacement(gfx::Rect* bounds, | 43 void GetWindowPlacement(gfx::Rect* bounds, |
43 ui::WindowShowState* show_state) const override; | 44 ui::WindowShowState* show_state) const override; |
44 bool PreHandleKeyboardEvent( | 45 bool PreHandleKeyboardEvent( |
45 const content::NativeWebKeyboardEvent& event) override; | 46 const content::NativeWebKeyboardEvent& event) override; |
46 bool HandleKeyboardEvent( | 47 bool HandleKeyboardEvent( |
47 const content::NativeWebKeyboardEvent& event) override; | 48 const content::NativeWebKeyboardEvent& event) override; |
48 | 49 |
49 ~BrowserFrameAsh() override; | 50 ~BrowserFrameAsh() override; |
50 | 51 |
51 private: | 52 private: |
52 class WindowPropertyWatcher; | 53 class WindowPropertyWatcher; |
53 | 54 |
54 // Set the window into the auto managed mode. | 55 // Set the window into the auto managed mode. |
55 void SetWindowAutoManaged(); | 56 void SetWindowAutoManaged(); |
56 | 57 |
57 // The BrowserView is our ClientView. This is a pointer to it. | 58 // The BrowserView is our ClientView. This is a pointer to it. |
58 BrowserView* browser_view_; | 59 BrowserView* browser_view_; |
59 | 60 |
60 DISALLOW_COPY_AND_ASSIGN(BrowserFrameAsh); | 61 DISALLOW_COPY_AND_ASSIGN(BrowserFrameAsh); |
61 }; | 62 }; |
62 | 63 |
63 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_FRAME_ASH_H_ | 64 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_FRAME_ASH_H_ |
OLD | NEW |