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

Side by Side Diff: chrome/browser/ui/panels/panel_browser_view.h

Issue 7633034: Use Titlebar instead of TitleBar consistently in panels code. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Code review feedback. Created 9 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) 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_PANELS_PANEL_BROWSER_VIEW_H_ 5 #ifndef CHROME_BROWSER_UI_PANELS_PANEL_BROWSER_VIEW_H_
6 #define CHROME_BROWSER_UI_PANELS_PANEL_BROWSER_VIEW_H_ 6 #define CHROME_BROWSER_UI_PANELS_PANEL_BROWSER_VIEW_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/gtest_prod_util.h" 9 #include "base/gtest_prod_util.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 17 matching lines...) Expand all
28 public: 28 public:
29 PanelBrowserView(Browser* browser, Panel* panel, const gfx::Rect& bounds); 29 PanelBrowserView(Browser* browser, Panel* panel, const gfx::Rect& bounds);
30 virtual ~PanelBrowserView(); 30 virtual ~PanelBrowserView();
31 31
32 Panel* panel() const { return panel_.get(); } 32 Panel* panel() const { return panel_.get(); }
33 bool closed() const { return closed_; } 33 bool closed() const { return closed_; }
34 bool focused() const { return focused_; } 34 bool focused() const { return focused_; }
35 35
36 PanelBrowserFrameView* GetFrameView() const; 36 PanelBrowserFrameView* GetFrameView() const;
37 37
38 // Called from frame view when title bar receives a mouse event. 38 // Called from frame view when titlebar receives a mouse event.
39 // Return true if the event is handled. 39 // Return true if the event is handled.
40 bool OnTitleBarMousePressed(const gfx::Point& location); 40 bool OnTitlebarMousePressed(const gfx::Point& location);
41 bool OnTitleBarMouseDragged(const gfx::Point& location); 41 bool OnTitlebarMouseDragged(const gfx::Point& location);
42 bool OnTitleBarMouseReleased(); 42 bool OnTitlebarMouseReleased();
43 bool OnTitleBarMouseCaptureLost(); 43 bool OnTitlebarMouseCaptureLost();
44 44
45 private: 45 private:
46 friend class NativePanelTestingWin; 46 friend class NativePanelTestingWin;
47 friend class PanelBrowserViewTest; 47 friend class PanelBrowserViewTest;
48 FRIEND_TEST_ALL_PREFIXES(PanelBrowserViewTest, CreatePanel); 48 FRIEND_TEST_ALL_PREFIXES(PanelBrowserViewTest, CreatePanel);
49 FRIEND_TEST_ALL_PREFIXES(PanelBrowserViewTest, ShowOrHideSettingsButton); 49 FRIEND_TEST_ALL_PREFIXES(PanelBrowserViewTest, ShowOrHideSettingsButton);
50 FRIEND_TEST_ALL_PREFIXES(PanelBrowserViewTest, SetBoundsAnimation); 50 FRIEND_TEST_ALL_PREFIXES(PanelBrowserViewTest, SetBoundsAnimation);
51 51
52 // Overridden from BrowserView: 52 // Overridden from BrowserView:
53 virtual void Init() OVERRIDE; 53 virtual void Init() OVERRIDE;
(...skipping 15 matching lines...) Expand all
69 virtual void OnWidgetActivationChanged(views::Widget* widget, 69 virtual void OnWidgetActivationChanged(views::Widget* widget,
70 bool active) OVERRIDE; 70 bool active) OVERRIDE;
71 71
72 // Overridden from NativePanel: 72 // Overridden from NativePanel:
73 virtual void ShowPanel() OVERRIDE; 73 virtual void ShowPanel() OVERRIDE;
74 virtual void ShowPanelInactive() OVERRIDE; 74 virtual void ShowPanelInactive() OVERRIDE;
75 virtual gfx::Rect GetPanelBounds() const OVERRIDE; 75 virtual gfx::Rect GetPanelBounds() const OVERRIDE;
76 virtual void SetPanelBounds(const gfx::Rect& bounds) OVERRIDE; 76 virtual void SetPanelBounds(const gfx::Rect& bounds) OVERRIDE;
77 virtual void OnPanelExpansionStateChanged( 77 virtual void OnPanelExpansionStateChanged(
78 Panel::ExpansionState expansion_state) OVERRIDE; 78 Panel::ExpansionState expansion_state) OVERRIDE;
79 virtual bool ShouldBringUpPanelTitleBar(int mouse_x, 79 virtual bool ShouldBringUpPanelTitlebar(int mouse_x,
80 int mouse_y) const OVERRIDE; 80 int mouse_y) const OVERRIDE;
81 virtual void ClosePanel() OVERRIDE; 81 virtual void ClosePanel() OVERRIDE;
82 virtual void ActivatePanel() OVERRIDE; 82 virtual void ActivatePanel() OVERRIDE;
83 virtual void DeactivatePanel() OVERRIDE; 83 virtual void DeactivatePanel() OVERRIDE;
84 virtual bool IsPanelActive() const OVERRIDE; 84 virtual bool IsPanelActive() const OVERRIDE;
85 virtual gfx::NativeWindow GetNativePanelHandle() OVERRIDE; 85 virtual gfx::NativeWindow GetNativePanelHandle() OVERRIDE;
86 virtual void UpdatePanelTitleBar() OVERRIDE; 86 virtual void UpdatePanelTitleBar() OVERRIDE;
87 virtual void ShowTaskManagerForPanel() OVERRIDE; 87 virtual void ShowTaskManagerForPanel() OVERRIDE;
88 virtual FindBar* CreatePanelFindBar() OVERRIDE; 88 virtual FindBar* CreatePanelFindBar() OVERRIDE;
89 virtual void NotifyPanelOnUserChangedTheme() OVERRIDE; 89 virtual void NotifyPanelOnUserChangedTheme() OVERRIDE;
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
130 bool is_drawing_attention_; 130 bool is_drawing_attention_;
131 131
132 // Timestamp to prevent minimizing the panel when the user clicks the titlebar 132 // Timestamp to prevent minimizing the panel when the user clicks the titlebar
133 // to clear the attension state. 133 // to clear the attension state.
134 base::TimeTicks attention_cleared_time_; 134 base::TimeTicks attention_cleared_time_;
135 135
136 DISALLOW_COPY_AND_ASSIGN(PanelBrowserView); 136 DISALLOW_COPY_AND_ASSIGN(PanelBrowserView);
137 }; 137 };
138 138
139 #endif // CHROME_BROWSER_UI_PANELS_PANEL_BROWSER_VIEW_H_ 139 #endif // CHROME_BROWSER_UI_PANELS_PANEL_BROWSER_VIEW_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/panels/panel_browser_frame_view.cc ('k') | chrome/browser/ui/panels/panel_browser_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698