| 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_BROWSER_FRAME_WIN_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_FRAME_WIN_H_ |
| 6 #define CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_FRAME_WIN_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_FRAME_WIN_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
| 10 #include "chrome/browser/ui/views/frame/browser_frame.h" | 10 #include "chrome/browser/ui/views/frame/browser_frame.h" |
| (...skipping 29 matching lines...) Expand all Loading... |
| 40 // Explicitly sets how windows are shown. Use a value of -1 to give the | 40 // Explicitly sets how windows are shown. Use a value of -1 to give the |
| 41 // default behavior. This is used during testing and not generally useful | 41 // default behavior. This is used during testing and not generally useful |
| 42 // otherwise. | 42 // otherwise. |
| 43 static void SetShowState(int state); | 43 static void SetShowState(int state); |
| 44 | 44 |
| 45 protected: | 45 protected: |
| 46 // Overridden from views::NativeWidgetWin: | 46 // Overridden from views::NativeWidgetWin: |
| 47 virtual int GetInitialShowState() const OVERRIDE; | 47 virtual int GetInitialShowState() const OVERRIDE; |
| 48 virtual bool GetClientAreaInsets(gfx::Insets* insets) const OVERRIDE; | 48 virtual bool GetClientAreaInsets(gfx::Insets* insets) const OVERRIDE; |
| 49 virtual void UpdateFrameAfterFrameChange() OVERRIDE; | 49 virtual void UpdateFrameAfterFrameChange() OVERRIDE; |
| 50 virtual void OnEndSession(BOOL ending, UINT logoff) OVERRIDE; | 50 virtual bool PreHandleMSG(UINT message, |
| 51 virtual void OnInitMenuPopup(HMENU menu, | 51 WPARAM w_param, |
| 52 UINT position, | 52 LPARAM l_param, |
| 53 BOOL is_system_menu) OVERRIDE; | 53 LRESULT* result) OVERRIDE; |
| 54 virtual void OnWindowPosChanged(WINDOWPOS* window_pos) OVERRIDE; | 54 virtual void PostHandleMSG(UINT message, |
| 55 WPARAM w_param, |
| 56 LPARAM l_param) OVERRIDE; |
| 55 virtual void OnScreenReaderDetected() OVERRIDE; | 57 virtual void OnScreenReaderDetected() OVERRIDE; |
| 56 virtual bool ShouldUseNativeFrame() const OVERRIDE; | 58 virtual bool ShouldUseNativeFrame() const OVERRIDE; |
| 57 virtual void Show() OVERRIDE; | 59 virtual void Show() OVERRIDE; |
| 58 virtual void ShowMaximizedWithBounds( | 60 virtual void ShowMaximizedWithBounds( |
| 59 const gfx::Rect& restored_bounds) OVERRIDE; | 61 const gfx::Rect& restored_bounds) OVERRIDE; |
| 60 virtual void ShowWithWindowState(ui::WindowShowState show_state) OVERRIDE; | 62 virtual void ShowWithWindowState(ui::WindowShowState show_state) OVERRIDE; |
| 61 virtual void Close() OVERRIDE; | 63 virtual void Close() OVERRIDE; |
| 62 virtual void OnActivate(UINT action, BOOL minimized, HWND window) OVERRIDE; | |
| 63 virtual void FrameTypeChanged() OVERRIDE; | 64 virtual void FrameTypeChanged() OVERRIDE; |
| 64 virtual void SetFullscreen(bool fullscreen) OVERRIDE; | 65 virtual void SetFullscreen(bool fullscreen) OVERRIDE; |
| 65 | 66 |
| 66 // Overridden from NativeBrowserFrame: | 67 // Overridden from NativeBrowserFrame: |
| 67 virtual views::NativeWidget* AsNativeWidget() OVERRIDE; | 68 virtual views::NativeWidget* AsNativeWidget() OVERRIDE; |
| 68 virtual const views::NativeWidget* AsNativeWidget() const OVERRIDE; | 69 virtual const views::NativeWidget* AsNativeWidget() const OVERRIDE; |
| 69 virtual void InitSystemContextMenu() OVERRIDE; | 70 virtual void InitSystemContextMenu() OVERRIDE; |
| 70 virtual int GetMinimizeButtonOffset() const OVERRIDE; | 71 virtual int GetMinimizeButtonOffset() const OVERRIDE; |
| 71 virtual void TabStripDisplayModeChanged() OVERRIDE; | 72 virtual void TabStripDisplayModeChanged() OVERRIDE; |
| 72 | 73 |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 121 // The wrapped system menu itself. | 122 // The wrapped system menu itself. |
| 122 scoped_ptr<views::NativeMenuWin> system_menu_; | 123 scoped_ptr<views::NativeMenuWin> system_menu_; |
| 123 | 124 |
| 124 // See CacheMinimizeButtonDelta() for details about this member. | 125 // See CacheMinimizeButtonDelta() for details about this member. |
| 125 int cached_minimize_button_x_delta_; | 126 int cached_minimize_button_x_delta_; |
| 126 | 127 |
| 127 DISALLOW_COPY_AND_ASSIGN(BrowserFrameWin); | 128 DISALLOW_COPY_AND_ASSIGN(BrowserFrameWin); |
| 128 }; | 129 }; |
| 129 | 130 |
| 130 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_FRAME_WIN_H_ | 131 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_FRAME_WIN_H_ |
| OLD | NEW |