OLD | NEW |
1 // Copyright (c) 2006-2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-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_VIEWS_FRAME_BROWSER_VIEW_H_ | 5 #ifndef CHROME_BROWSER_VIEWS_FRAME_BROWSER_VIEW_H_ |
6 #define CHROME_BROWSER_VIEWS_FRAME_BROWSER_VIEW_H_ | 6 #define CHROME_BROWSER_VIEWS_FRAME_BROWSER_VIEW_H_ |
7 | 7 |
8 #include "chrome/browser/browser.h" | 8 #include "chrome/browser/browser.h" |
9 #include "chrome/browser/browser_window.h" | 9 #include "chrome/browser/browser_window.h" |
10 #include "chrome/browser/hang_monitor/hung_plugin_action.h" | 10 #include "chrome/browser/hang_monitor/hung_plugin_action.h" |
(...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
234 bool always_on_top); | 234 bool always_on_top); |
235 virtual bool GetSavedWindowBounds(gfx::Rect* bounds) const; | 235 virtual bool GetSavedWindowBounds(gfx::Rect* bounds) const; |
236 virtual bool GetSavedMaximizedState(bool* maximized) const; | 236 virtual bool GetSavedMaximizedState(bool* maximized) const; |
237 virtual views::View* GetContentsView(); | 237 virtual views::View* GetContentsView(); |
238 virtual views::ClientView* CreateClientView(views::Window* window); | 238 virtual views::ClientView* CreateClientView(views::Window* window); |
239 | 239 |
240 // Overridden from views::ClientView: | 240 // Overridden from views::ClientView: |
241 virtual bool CanClose() const; | 241 virtual bool CanClose() const; |
242 virtual int NonClientHitTest(const gfx::Point& point); | 242 virtual int NonClientHitTest(const gfx::Point& point); |
243 virtual gfx::Size GetMinimumSize(); | 243 virtual gfx::Size GetMinimumSize(); |
244 | |
245 // Is P13N enabled for this browser window? | |
246 #ifdef CHROME_PERSONALIZATION | |
247 virtual bool IsPersonalizationEnabled() const { | |
248 return personalization_enabled_; | |
249 } | |
250 | |
251 void EnablePersonalization(bool enable_personalization) { | |
252 personalization_enabled_ = enable_personalization; | |
253 } | |
254 #endif | |
255 | |
256 virtual std::string GetClassName() const; | 244 virtual std::string GetClassName() const; |
257 | 245 |
258 protected: | 246 protected: |
259 // Overridden from views::View: | 247 // Overridden from views::View: |
260 virtual void Layout(); | 248 virtual void Layout(); |
261 virtual void ViewHierarchyChanged(bool is_add, | 249 virtual void ViewHierarchyChanged(bool is_add, |
262 views::View* parent, | 250 views::View* parent, |
263 views::View* child); | 251 views::View* child); |
264 private: | 252 private: |
265 // Browser window related initializations. | 253 // Browser window related initializations. |
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
406 // plugin window. | 394 // plugin window. |
407 HungPluginAction hung_plugin_action_; | 395 HungPluginAction hung_plugin_action_; |
408 | 396 |
409 // The timer used to update frames for the Loading Animation. | 397 // The timer used to update frames for the Loading Animation. |
410 base::RepeatingTimer<BrowserView> loading_animation_timer_; | 398 base::RepeatingTimer<BrowserView> loading_animation_timer_; |
411 | 399 |
412 DISALLOW_COPY_AND_ASSIGN(BrowserView); | 400 DISALLOW_COPY_AND_ASSIGN(BrowserView); |
413 }; | 401 }; |
414 | 402 |
415 #endif // CHROME_BROWSER_VIEWS_FRAME_BROWSER_VIEW_H_ | 403 #endif // CHROME_BROWSER_VIEWS_FRAME_BROWSER_VIEW_H_ |
OLD | NEW |