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

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

Issue 8351007: views: Factor out SingleSplitView Observer into SingleSplitViewListener. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 2 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
« no previous file with comments | « no previous file | chrome/browser/ui/views/frame/browser_view.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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_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 #pragma once 7 #pragma once
8 8
9 #include <map> 9 #include <map>
10 #include <string> 10 #include <string>
11 #include <vector> 11 #include <vector>
12 12
13 #include "base/memory/scoped_ptr.h" 13 #include "base/memory/scoped_ptr.h"
14 #include "base/timer.h" 14 #include "base/timer.h"
15 #include "build/build_config.h" 15 #include "build/build_config.h"
16 #include "chrome/browser/infobars/infobar_container.h" 16 #include "chrome/browser/infobars/infobar_container.h"
17 #include "chrome/browser/tabs/tab_strip_model_observer.h" 17 #include "chrome/browser/tabs/tab_strip_model_observer.h"
18 #include "chrome/browser/ui/browser.h" 18 #include "chrome/browser/ui/browser.h"
19 #include "chrome/browser/ui/browser_window.h" 19 #include "chrome/browser/ui/browser_window.h"
20 #include "chrome/browser/ui/views/frame/browser_bubble_host.h" 20 #include "chrome/browser/ui/views/frame/browser_bubble_host.h"
21 #include "chrome/browser/ui/views/frame/browser_frame.h" 21 #include "chrome/browser/ui/views/frame/browser_frame.h"
22 #include "chrome/browser/ui/views/tab_contents/tab_contents_container.h" 22 #include "chrome/browser/ui/views/tab_contents/tab_contents_container.h"
23 #include "chrome/browser/ui/views/tabs/abstract_tab_strip_view.h" 23 #include "chrome/browser/ui/views/tabs/abstract_tab_strip_view.h"
24 #include "chrome/browser/ui/views/unhandled_keyboard_event_handler.h" 24 #include "chrome/browser/ui/views/unhandled_keyboard_event_handler.h"
25 #include "content/public/browser/notification_registrar.h" 25 #include "content/public/browser/notification_registrar.h"
26 #include "ui/base/models/simple_menu_model.h" 26 #include "ui/base/models/simple_menu_model.h"
27 #include "ui/gfx/native_widget_types.h" 27 #include "ui/gfx/native_widget_types.h"
28 #include "views/controls/single_split_view.h" 28 #include "views/controls/single_split_view_listener.h"
29 #include "views/widget/widget_delegate.h" 29 #include "views/widget/widget_delegate.h"
30 #include "views/window/client_view.h" 30 #include "views/window/client_view.h"
31 31
32 #if defined(OS_WIN) 32 #if defined(OS_WIN)
33 #include "chrome/browser/hang_monitor/hung_plugin_action.h" 33 #include "chrome/browser/hang_monitor/hung_plugin_action.h"
34 #include "chrome/browser/hang_monitor/hung_window_detector.h" 34 #include "chrome/browser/hang_monitor/hung_window_detector.h"
35 #include "views/controls/menu/native_menu_win.h" 35 #include "views/controls/menu/native_menu_win.h"
36 #endif 36 #endif
37 37
38 // NOTE: For more information about the objects and files in this directory, 38 // NOTE: For more information about the objects and files in this directory,
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 class BrowserView : public BrowserBubbleHost, 81 class BrowserView : public BrowserBubbleHost,
82 public BrowserWindow, 82 public BrowserWindow,
83 public BrowserWindowTesting, 83 public BrowserWindowTesting,
84 public content::NotificationObserver, 84 public content::NotificationObserver,
85 public TabStripModelObserver, 85 public TabStripModelObserver,
86 public ui::SimpleMenuModel::Delegate, 86 public ui::SimpleMenuModel::Delegate,
87 public views::WidgetDelegate, 87 public views::WidgetDelegate,
88 public views::Widget::Observer, 88 public views::Widget::Observer,
89 public views::ClientView, 89 public views::ClientView,
90 public InfoBarContainer::Delegate, 90 public InfoBarContainer::Delegate,
91 public views::SingleSplitView::Observer { 91 public views::SingleSplitViewListener {
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);
97 virtual ~BrowserView(); 97 virtual ~BrowserView();
98 98
99 void set_frame(BrowserFrame* frame) { frame_ = frame; } 99 void set_frame(BrowserFrame* frame) { frame_ = frame; }
100 BrowserFrame* frame() const { return frame_; } 100 BrowserFrame* frame() const { return frame_; }
101 101
(...skipping 298 matching lines...) Expand 10 before | Expand all | Expand 10 after
400 // Overridden from views::ClientView: 400 // Overridden from views::ClientView:
401 virtual bool CanClose() OVERRIDE; 401 virtual bool CanClose() OVERRIDE;
402 virtual int NonClientHitTest(const gfx::Point& point) OVERRIDE; 402 virtual int NonClientHitTest(const gfx::Point& point) OVERRIDE;
403 virtual gfx::Size GetMinimumSize() OVERRIDE; 403 virtual gfx::Size GetMinimumSize() OVERRIDE;
404 404
405 // InfoBarContainer::Delegate overrides 405 // InfoBarContainer::Delegate overrides
406 virtual SkColor GetInfoBarSeparatorColor() const OVERRIDE; 406 virtual SkColor GetInfoBarSeparatorColor() const OVERRIDE;
407 virtual void InfoBarContainerStateChanged(bool is_animating) OVERRIDE; 407 virtual void InfoBarContainerStateChanged(bool is_animating) OVERRIDE;
408 virtual bool DrawInfoBarArrows(int* x) const OVERRIDE; 408 virtual bool DrawInfoBarArrows(int* x) const OVERRIDE;
409 409
410 // views::SingleSplitView::Observer overrides: 410 // views::SingleSplitViewListener overrides:
411 virtual bool SplitHandleMoved(views::SingleSplitView* view) OVERRIDE; 411 virtual bool SplitHandleMoved(views::SingleSplitView* sender) OVERRIDE;
412 412
413 protected: 413 protected:
414 // Appends to |toolbars| a pointer to each AccessiblePaneView that 414 // Appends to |toolbars| a pointer to each AccessiblePaneView that
415 // can be traversed using F6, in the order they should be traversed. 415 // can be traversed using F6, in the order they should be traversed.
416 // Abstracted here so that it can be extended for Chrome OS. 416 // Abstracted here so that it can be extended for Chrome OS.
417 virtual void GetAccessiblePanes( 417 virtual void GetAccessiblePanes(
418 std::vector<AccessiblePaneView*>* panes); 418 std::vector<AccessiblePaneView*>* panes);
419 419
420 // Save the current focused view to view storage 420 // Save the current focused view to view storage
421 void SaveFocusedView(); 421 void SaveFocusedView();
(...skipping 303 matching lines...) Expand 10 before | Expand all | Expand 10 after
725 // If this flag is set then SetFocusToLocationBar() will set focus to the 725 // If this flag is set then SetFocusToLocationBar() will set focus to the
726 // location bar even if the browser window is not active. 726 // location bar even if the browser window is not active.
727 bool force_location_bar_focus_; 727 bool force_location_bar_focus_;
728 728
729 PendingFullscreenRequest fullscreen_request_; 729 PendingFullscreenRequest fullscreen_request_;
730 730
731 DISALLOW_COPY_AND_ASSIGN(BrowserView); 731 DISALLOW_COPY_AND_ASSIGN(BrowserView);
732 }; 732 };
733 733
734 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_VIEW_H_ 734 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_VIEW_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/ui/views/frame/browser_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698