| 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 23 matching lines...) Expand all Loading... |
| 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 bool ShouldSaveWindowPlacement() const override; | 41 bool ShouldSaveWindowPlacement() const override; |
| 42 void GetWindowPlacement(gfx::Rect* bounds, | 42 void GetWindowPlacement(gfx::Rect* bounds, |
| 43 ui::WindowShowState* show_state) const override; | 43 ui::WindowShowState* show_state) const override; |
| 44 bool PreHandleKeyboardEvent( |
| 45 const content::NativeWebKeyboardEvent& event) override; |
| 46 bool HandleKeyboardEvent( |
| 47 const content::NativeWebKeyboardEvent& event) override; |
| 44 | 48 |
| 45 ~BrowserFrameAsh() override; | 49 ~BrowserFrameAsh() override; |
| 46 | 50 |
| 47 private: | 51 private: |
| 48 class WindowPropertyWatcher; | 52 class WindowPropertyWatcher; |
| 49 | 53 |
| 50 // Set the window into the auto managed mode. | 54 // Set the window into the auto managed mode. |
| 51 void SetWindowAutoManaged(); | 55 void SetWindowAutoManaged(); |
| 52 | 56 |
| 53 // The BrowserView is our ClientView. This is a pointer to it. | 57 // The BrowserView is our ClientView. This is a pointer to it. |
| 54 BrowserView* browser_view_; | 58 BrowserView* browser_view_; |
| 55 | 59 |
| 56 DISALLOW_COPY_AND_ASSIGN(BrowserFrameAsh); | 60 DISALLOW_COPY_AND_ASSIGN(BrowserFrameAsh); |
| 57 }; | 61 }; |
| 58 | 62 |
| 59 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_FRAME_ASH_H_ | 63 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_FRAME_ASH_H_ |
| OLD | NEW |