OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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_MAIN_MENU_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_MAIN_MENU_H_ |
6 #define CHROME_BROWSER_CHROMEOS_MAIN_MENU_H_ | 6 #define CHROME_BROWSER_CHROMEOS_MAIN_MENU_H_ |
7 | 7 |
8 #include <gtk/gtk.h> | 8 #include <gtk/gtk.h> |
9 | 9 |
10 #include "base/scoped_ptr.h" | 10 #include "base/scoped_ptr.h" |
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
138 virtual int GetBrowserWindowID() const { | 138 virtual int GetBrowserWindowID() const { |
139 return -1; | 139 return -1; |
140 } | 140 } |
141 virtual ViewType::Type GetRenderViewType() const { | 141 virtual ViewType::Type GetRenderViewType() const { |
142 return ViewType::INVALID; | 142 return ViewType::INVALID; |
143 } | 143 } |
144 virtual RenderViewHostDelegate::View* GetViewDelegate() { | 144 virtual RenderViewHostDelegate::View* GetViewDelegate() { |
145 return this; | 145 return this; |
146 } | 146 } |
147 virtual void RequestMove(const gfx::Rect& new_bounds); | 147 virtual void RequestMove(const gfx::Rect& new_bounds); |
148 virtual RendererPreferences GetRendererPrefs() const; | 148 virtual RendererPreferences GetRendererPrefs(Profile* profile) const; |
149 | 149 |
150 // RenderViewHostDelegate::View overrides. | 150 // RenderViewHostDelegate::View overrides. |
151 virtual void CreateNewWindow(int route_id); | 151 virtual void CreateNewWindow(int route_id); |
152 virtual void CreateNewWidget(int route_id, bool activatable) {} | 152 virtual void CreateNewWidget(int route_id, bool activatable) {} |
153 virtual void ShowCreatedWindow(int route_id, | 153 virtual void ShowCreatedWindow(int route_id, |
154 WindowOpenDisposition disposition, | 154 WindowOpenDisposition disposition, |
155 const gfx::Rect& initial_pos, | 155 const gfx::Rect& initial_pos, |
156 bool user_gesture, | 156 bool user_gesture, |
157 const GURL& creator_url); | 157 const GURL& creator_url); |
158 virtual void ShowCreatedWidget(int route_id, | 158 virtual void ShowCreatedWidget(int route_id, |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
200 | 200 |
201 // True if the popup has ever been shown. | 201 // True if the popup has ever been shown. |
202 bool has_shown_; | 202 bool has_shown_; |
203 | 203 |
204 DISALLOW_COPY_AND_ASSIGN(MainMenu); | 204 DISALLOW_COPY_AND_ASSIGN(MainMenu); |
205 }; | 205 }; |
206 | 206 |
207 } // namespace chromeos | 207 } // namespace chromeos |
208 | 208 |
209 #endif // CHROME_BROWSER_CHROMEOS_MAIN_MENU_H_ | 209 #endif // CHROME_BROWSER_CHROMEOS_MAIN_MENU_H_ |
OLD | NEW |