OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_CHROMEOS_FRAME_BROWSER_VIEW_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_FRAME_BROWSER_VIEW_H_ |
6 #define CHROME_BROWSER_CHROMEOS_FRAME_BROWSER_VIEW_H_ | 6 #define CHROME_BROWSER_CHROMEOS_FRAME_BROWSER_VIEW_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
54 explicit BrowserView(Browser* browser); | 54 explicit BrowserView(Browser* browser); |
55 virtual ~BrowserView(); | 55 virtual ~BrowserView(); |
56 | 56 |
57 // BrowserView implementation. | 57 // BrowserView implementation. |
58 virtual void Init() OVERRIDE; | 58 virtual void Init() OVERRIDE; |
59 virtual void Show() OVERRIDE; | 59 virtual void Show() OVERRIDE; |
60 virtual void ShowInactive() OVERRIDE; | 60 virtual void ShowInactive() OVERRIDE; |
61 virtual void FocusChromeOSStatus() OVERRIDE; | 61 virtual void FocusChromeOSStatus() OVERRIDE; |
62 virtual views::LayoutManager* CreateLayoutManager() const OVERRIDE; | 62 virtual views::LayoutManager* CreateLayoutManager() const OVERRIDE; |
63 virtual void ChildPreferredSizeChanged(View* child) OVERRIDE; | 63 virtual void ChildPreferredSizeChanged(View* child) OVERRIDE; |
64 virtual bool GetSavedWindowBounds(gfx::Rect* bounds) const OVERRIDE; | 64 virtual bool GetSavedWindowPlacement( |
| 65 gfx::Rect* bounds, |
| 66 ui::WindowShowState* show_state) const OVERRIDE; |
65 virtual void Cut() OVERRIDE; | 67 virtual void Cut() OVERRIDE; |
66 virtual void Copy() OVERRIDE; | 68 virtual void Copy() OVERRIDE; |
67 virtual void Paste() OVERRIDE; | 69 virtual void Paste() OVERRIDE; |
68 virtual WindowOpenDisposition GetDispositionForPopupBounds( | 70 virtual WindowOpenDisposition GetDispositionForPopupBounds( |
69 const gfx::Rect& bounds) OVERRIDE; | 71 const gfx::Rect& bounds) OVERRIDE; |
70 | 72 |
71 // views::ContextMenuController implementation. | 73 // views::ContextMenuController implementation. |
72 virtual void ShowContextMenuForView(views::View* source, | 74 virtual void ShowContextMenuForView(views::View* source, |
73 const gfx::Point& p, | 75 const gfx::Point& p, |
74 bool is_mouse_gesture) OVERRIDE; | 76 bool is_mouse_gesture) OVERRIDE; |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
145 // Should the layout mode button be shown? We only show it if there are | 147 // Should the layout mode button be shown? We only show it if there are |
146 // multiple browsers open. | 148 // multiple browsers open. |
147 bool should_show_layout_mode_button_; | 149 bool should_show_layout_mode_button_; |
148 | 150 |
149 DISALLOW_COPY_AND_ASSIGN(BrowserView); | 151 DISALLOW_COPY_AND_ASSIGN(BrowserView); |
150 }; | 152 }; |
151 | 153 |
152 } // namespace chromeos | 154 } // namespace chromeos |
153 | 155 |
154 #endif // CHROME_BROWSER_CHROMEOS_FRAME_BROWSER_VIEW_H_ | 156 #endif // CHROME_BROWSER_CHROMEOS_FRAME_BROWSER_VIEW_H_ |
OLD | NEW |