Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(574)

Side by Side Diff: chrome/browser/ui/views/frame/browser_view.h

Issue 10834079: views: Extract Widget observer into its own header file. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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_VIEW_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_VIEW_H_
6 #define CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_VIEW_H_ 6 #define CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_VIEW_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 10 matching lines...) Expand all
21 #include "chrome/browser/ui/tabs/tab_strip_model_observer.h" 21 #include "chrome/browser/ui/tabs/tab_strip_model_observer.h"
22 #include "chrome/browser/ui/views/frame/browser_frame.h" 22 #include "chrome/browser/ui/views/frame/browser_frame.h"
23 #include "chrome/browser/ui/views/unhandled_keyboard_event_handler.h" 23 #include "chrome/browser/ui/views/unhandled_keyboard_event_handler.h"
24 #include "ui/base/accelerators/accelerator.h" 24 #include "ui/base/accelerators/accelerator.h"
25 #include "ui/base/models/simple_menu_model.h" 25 #include "ui/base/models/simple_menu_model.h"
26 #include "ui/gfx/native_widget_types.h" 26 #include "ui/gfx/native_widget_types.h"
27 #include "ui/gfx/sys_color_change_listener.h" 27 #include "ui/gfx/sys_color_change_listener.h"
28 #include "ui/views/controls/button/button.h" 28 #include "ui/views/controls/button/button.h"
29 #include "ui/views/controls/single_split_view_listener.h" 29 #include "ui/views/controls/single_split_view_listener.h"
30 #include "ui/views/widget/widget_delegate.h" 30 #include "ui/views/widget/widget_delegate.h"
31 #include "ui/views/widget/widget_observer.h"
31 #include "ui/views/window/client_view.h" 32 #include "ui/views/window/client_view.h"
32 33
33 #if defined(OS_WIN) 34 #if defined(OS_WIN)
34 #include "chrome/browser/hang_monitor/hung_plugin_action.h" 35 #include "chrome/browser/hang_monitor/hung_plugin_action.h"
35 #include "chrome/browser/hang_monitor/hung_window_detector.h" 36 #include "chrome/browser/hang_monitor/hung_window_detector.h"
36 #endif 37 #endif
37 38
38 // NOTE: For more information about the objects and files in this directory, 39 // NOTE: For more information about the objects and files in this directory,
39 // view: http://dev.chromium.org/developers/design-documents/browser-window 40 // view: http://dev.chromium.org/developers/design-documents/browser-window
40 41
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 // BrowserView 83 // BrowserView
83 // 84 //
84 // A ClientView subclass that provides the contents of a browser window, 85 // A ClientView subclass that provides the contents of a browser window,
85 // including the TabStrip, toolbars, download shelves, the content area etc. 86 // including the TabStrip, toolbars, download shelves, the content area etc.
86 // 87 //
87 class BrowserView : public BrowserWindow, 88 class BrowserView : public BrowserWindow,
88 public BrowserWindowTesting, 89 public BrowserWindowTesting,
89 public TabStripModelObserver, 90 public TabStripModelObserver,
90 public ui::AcceleratorProvider, 91 public ui::AcceleratorProvider,
91 public views::WidgetDelegate, 92 public views::WidgetDelegate,
92 public views::Widget::Observer, 93 public views::WidgetObserver,
93 public views::ClientView, 94 public views::ClientView,
94 public InfoBarContainer::Delegate, 95 public InfoBarContainer::Delegate,
95 public views::SingleSplitViewListener, 96 public views::SingleSplitViewListener,
96 public gfx::SysColorChangeListener, 97 public gfx::SysColorChangeListener,
97 public MetroPinnedStateObserver { 98 public MetroPinnedStateObserver {
98 public: 99 public:
99 // The browser view's class name. 100 // The browser view's class name.
100 static const char kViewClassName[]; 101 static const char kViewClassName[];
101 102
102 explicit BrowserView(Browser* browser); 103 explicit BrowserView(Browser* browser);
(...skipping 288 matching lines...) Expand 10 before | Expand all | Expand 10 after
391 virtual bool GetSavedWindowPlacement( 392 virtual bool GetSavedWindowPlacement(
392 gfx::Rect* bounds, 393 gfx::Rect* bounds,
393 ui::WindowShowState* show_state) const OVERRIDE; 394 ui::WindowShowState* show_state) const OVERRIDE;
394 virtual views::View* GetContentsView() OVERRIDE; 395 virtual views::View* GetContentsView() OVERRIDE;
395 virtual views::ClientView* CreateClientView(views::Widget* widget) OVERRIDE; 396 virtual views::ClientView* CreateClientView(views::Widget* widget) OVERRIDE;
396 virtual void OnWindowBeginUserBoundsChange() OVERRIDE; 397 virtual void OnWindowBeginUserBoundsChange() OVERRIDE;
397 virtual void OnWidgetMove() OVERRIDE; 398 virtual void OnWidgetMove() OVERRIDE;
398 virtual views::Widget* GetWidget() OVERRIDE; 399 virtual views::Widget* GetWidget() OVERRIDE;
399 virtual const views::Widget* GetWidget() const OVERRIDE; 400 virtual const views::Widget* GetWidget() const OVERRIDE;
400 401
401 // Overridden from views::Widget::Observer 402 // Overridden from views::WidgetObserver:
402 virtual void OnWidgetActivationChanged(views::Widget* widget, 403 virtual void OnWidgetActivationChanged(views::Widget* widget,
403 bool active) OVERRIDE; 404 bool active) OVERRIDE;
404 405
405 // Overridden from views::ClientView: 406 // Overridden from views::ClientView:
406 virtual bool CanClose() OVERRIDE; 407 virtual bool CanClose() OVERRIDE;
407 virtual int NonClientHitTest(const gfx::Point& point) OVERRIDE; 408 virtual int NonClientHitTest(const gfx::Point& point) OVERRIDE;
408 virtual gfx::Size GetMinimumSize() OVERRIDE; 409 virtual gfx::Size GetMinimumSize() OVERRIDE;
409 410
410 // InfoBarContainer::Delegate overrides 411 // InfoBarContainer::Delegate overrides
411 virtual SkColor GetInfoBarSeparatorColor() const OVERRIDE; 412 virtual SkColor GetInfoBarSeparatorColor() const OVERRIDE;
(...skipping 308 matching lines...) Expand 10 before | Expand all | Expand 10 after
720 gfx::ScopedSysColorChangeListener color_change_listener_; 721 gfx::ScopedSysColorChangeListener color_change_listener_;
721 722
722 #if defined(USE_AURA) 723 #if defined(USE_AURA)
723 scoped_ptr<SearchViewController> search_view_controller_; 724 scoped_ptr<SearchViewController> search_view_controller_;
724 #endif 725 #endif
725 726
726 DISALLOW_COPY_AND_ASSIGN(BrowserView); 727 DISALLOW_COPY_AND_ASSIGN(BrowserView);
727 }; 728 };
728 729
729 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_VIEW_H_ 730 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_VIEW_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/frame/browser_frame.cc ('k') | chrome/browser/ui/views/location_bar/content_setting_image_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698