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_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 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
76 /////////////////////////////////////////////////////////////////////////////// | 76 /////////////////////////////////////////////////////////////////////////////// |
77 // BrowserView | 77 // BrowserView |
78 // | 78 // |
79 // A ClientView subclass that provides the contents of a browser window, | 79 // A ClientView subclass that provides the contents of a browser window, |
80 // including the TabStrip, toolbars, download shelves, the content area etc. | 80 // including the TabStrip, toolbars, download shelves, the content area etc. |
81 // | 81 // |
82 class BrowserView : public BrowserWindow, | 82 class BrowserView : public BrowserWindow, |
83 public BrowserWindowTesting, | 83 public BrowserWindowTesting, |
84 public TabStripModelObserver, | 84 public TabStripModelObserver, |
85 public ui::AcceleratorProvider, | 85 public ui::AcceleratorProvider, |
86 public views::WidgetDelegate, | 86 public views::WidgetDelegateView, |
Ben Goodger (Google)
2012/07/23 21:17:55
wrong
| |
87 public views::Widget::Observer, | 87 public views::Widget::Observer, |
88 public views::ClientView, | 88 public views::ClientView, |
89 public InfoBarContainer::Delegate, | 89 public InfoBarContainer::Delegate, |
90 public views::SingleSplitViewListener, | 90 public views::SingleSplitViewListener, |
91 public gfx::SysColorChangeListener { | 91 public gfx::SysColorChangeListener { |
92 public: | 92 public: |
93 // The browser view's class name. | 93 // The browser view's class name. |
94 static const char kViewClassName[]; | 94 static const char kViewClassName[]; |
95 | 95 |
96 explicit BrowserView(Browser* browser); | 96 explicit BrowserView(Browser* browser); |
(...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
358 virtual void TabReplacedAt(TabStripModel* tab_strip_model, | 358 virtual void TabReplacedAt(TabStripModel* tab_strip_model, |
359 TabContents* old_contents, | 359 TabContents* old_contents, |
360 TabContents* new_contents, | 360 TabContents* new_contents, |
361 int index) OVERRIDE; | 361 int index) OVERRIDE; |
362 virtual void TabStripEmpty() OVERRIDE; | 362 virtual void TabStripEmpty() OVERRIDE; |
363 | 363 |
364 // Overridden from ui::AcceleratorProvider: | 364 // Overridden from ui::AcceleratorProvider: |
365 virtual bool GetAcceleratorForCommandId(int command_id, | 365 virtual bool GetAcceleratorForCommandId(int command_id, |
366 ui::Accelerator* accelerator) OVERRIDE; | 366 ui::Accelerator* accelerator) OVERRIDE; |
367 | 367 |
368 // Overridden from views::WidgetDelegate: | 368 // Overridden from views::WidgetDelegateView: |
369 virtual bool CanResize() const OVERRIDE; | 369 virtual bool CanResize() const OVERRIDE; |
370 virtual bool CanMaximize() const OVERRIDE; | 370 virtual bool CanMaximize() const OVERRIDE; |
371 virtual bool CanActivate() const OVERRIDE; | 371 virtual bool CanActivate() const OVERRIDE; |
372 virtual string16 GetWindowTitle() const OVERRIDE; | 372 virtual string16 GetWindowTitle() const OVERRIDE; |
373 virtual string16 GetAccessibleWindowTitle() const OVERRIDE; | 373 virtual string16 GetAccessibleWindowTitle() const OVERRIDE; |
374 virtual views::View* GetInitiallyFocusedView() OVERRIDE; | 374 virtual views::View* GetInitiallyFocusedView() OVERRIDE; |
375 virtual bool ShouldShowWindowTitle() const OVERRIDE; | 375 virtual bool ShouldShowWindowTitle() const OVERRIDE; |
376 virtual gfx::ImageSkia GetWindowAppIcon() OVERRIDE; | 376 virtual gfx::ImageSkia GetWindowAppIcon() OVERRIDE; |
377 virtual gfx::ImageSkia GetWindowIcon() OVERRIDE; | 377 virtual gfx::ImageSkia GetWindowIcon() OVERRIDE; |
378 virtual bool ShouldShowWindowIcon() const OVERRIDE; | 378 virtual bool ShouldShowWindowIcon() const OVERRIDE; |
379 virtual bool ExecuteWindowsCommand(int command_id) OVERRIDE; | 379 virtual bool ExecuteWindowsCommand(int command_id) OVERRIDE; |
380 virtual std::string GetWindowName() const OVERRIDE; | 380 virtual std::string GetWindowName() const OVERRIDE; |
381 virtual void SaveWindowPlacement(const gfx::Rect& bounds, | 381 virtual void SaveWindowPlacement(const gfx::Rect& bounds, |
382 ui::WindowShowState show_state) OVERRIDE; | 382 ui::WindowShowState show_state) OVERRIDE; |
383 virtual bool GetSavedWindowPlacement( | 383 virtual bool GetSavedWindowPlacement( |
384 gfx::Rect* bounds, | 384 gfx::Rect* bounds, |
385 ui::WindowShowState* show_state) const OVERRIDE; | 385 ui::WindowShowState* show_state) const OVERRIDE; |
386 virtual views::View* GetContentsView() OVERRIDE; | 386 virtual views::View* GetContentsView() OVERRIDE; |
387 virtual views::ClientView* CreateClientView(views::Widget* widget) OVERRIDE; | 387 virtual views::ClientView* CreateClientView(views::Widget* widget) OVERRIDE; |
388 virtual void OnWindowBeginUserBoundsChange() OVERRIDE; | 388 virtual void OnWindowBeginUserBoundsChange() OVERRIDE; |
389 virtual void OnWidgetMove() OVERRIDE; | 389 virtual void OnWidgetMove() OVERRIDE; |
390 virtual views::Widget* GetWidget() OVERRIDE; | |
391 virtual const views::Widget* GetWidget() const OVERRIDE; | |
392 | 390 |
393 // Overridden from views::Widget::Observer | 391 // Overridden from views::Widget::Observer |
394 virtual void OnWidgetActivationChanged(views::Widget* widget, | 392 virtual void OnWidgetActivationChanged(views::Widget* widget, |
395 bool active) OVERRIDE; | 393 bool active) OVERRIDE; |
396 | 394 |
397 // Overridden from views::ClientView: | 395 // Overridden from views::ClientView: |
398 virtual bool CanClose() OVERRIDE; | 396 virtual bool CanClose() OVERRIDE; |
399 virtual int NonClientHitTest(const gfx::Point& point) OVERRIDE; | 397 virtual int NonClientHitTest(const gfx::Point& point) OVERRIDE; |
400 virtual gfx::Size GetMinimumSize() OVERRIDE; | 398 virtual gfx::Size GetMinimumSize() OVERRIDE; |
401 | 399 |
(...skipping 302 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
704 gfx::ScopedSysColorChangeListener color_change_listener_; | 702 gfx::ScopedSysColorChangeListener color_change_listener_; |
705 | 703 |
706 #if defined(USE_AURA) | 704 #if defined(USE_AURA) |
707 scoped_ptr<SearchViewController> search_view_controller_; | 705 scoped_ptr<SearchViewController> search_view_controller_; |
708 #endif | 706 #endif |
709 | 707 |
710 DISALLOW_COPY_AND_ASSIGN(BrowserView); | 708 DISALLOW_COPY_AND_ASSIGN(BrowserView); |
711 }; | 709 }; |
712 | 710 |
713 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_VIEW_H_ | 711 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_VIEW_H_ |
OLD | NEW |