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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 virtual void Close() OVERRIDE; | 61 virtual void Close() OVERRIDE; |
62 virtual void FrameTypeChanged() OVERRIDE; | 62 virtual void FrameTypeChanged() OVERRIDE; |
63 virtual void SetFullscreen(bool fullscreen) OVERRIDE; | 63 virtual void SetFullscreen(bool fullscreen) OVERRIDE; |
64 virtual void Activate() OVERRIDE; | 64 virtual void Activate() OVERRIDE; |
65 | 65 |
66 // Overridden from NativeBrowserFrame: | 66 // Overridden from NativeBrowserFrame: |
67 virtual views::NativeWidget* AsNativeWidget() OVERRIDE; | 67 virtual views::NativeWidget* AsNativeWidget() OVERRIDE; |
68 virtual const views::NativeWidget* AsNativeWidget() const OVERRIDE; | 68 virtual const views::NativeWidget* AsNativeWidget() const OVERRIDE; |
69 virtual bool UsesNativeSystemMenu() const OVERRIDE; | 69 virtual bool UsesNativeSystemMenu() const OVERRIDE; |
70 virtual int GetMinimizeButtonOffset() const OVERRIDE; | 70 virtual int GetMinimizeButtonOffset() const OVERRIDE; |
71 virtual void TabStripDisplayModeChanged() OVERRIDE; | |
72 | 71 |
73 // Overriden from views::ImageButton override: | 72 // Overriden from views::ImageButton override: |
74 virtual void ButtonPressed(views::Button* sender, | 73 virtual void ButtonPressed(views::Button* sender, |
75 const ui::Event& event) OVERRIDE; | 74 const ui::Event& event) OVERRIDE; |
76 | 75 |
77 private: | 76 private: |
78 // Updates the DWM with the frame bounds. | 77 // Updates the DWM with the frame bounds. |
79 void UpdateDWMFrame(); | 78 void UpdateDWMFrame(); |
80 | 79 |
81 // Handles metro navigation and search requests. | 80 // Handles metro navigation and search requests. |
(...skipping 24 matching lines...) Expand all Loading... |
106 scoped_ptr<BrowserWindowPropertyManager> browser_window_property_manager_; | 105 scoped_ptr<BrowserWindowPropertyManager> browser_window_property_manager_; |
107 | 106 |
108 DISALLOW_COPY_AND_ASSIGN(BrowserFrameWin); | 107 DISALLOW_COPY_AND_ASSIGN(BrowserFrameWin); |
109 }; | 108 }; |
110 | 109 |
111 // Helper function to create the incognito/normal browser window switcher. | 110 // Helper function to create the incognito/normal browser window switcher. |
112 views::Button* MakeWindowSwitcherButton(views::ButtonListener* listener, | 111 views::Button* MakeWindowSwitcherButton(views::ButtonListener* listener, |
113 bool is_off_the_record); | 112 bool is_off_the_record); |
114 | 113 |
115 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_FRAME_WIN_H_ | 114 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_FRAME_WIN_H_ |
OLD | NEW |