OLD | NEW |
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 27 matching lines...) Expand all Loading... |
38 // Called from frame view when titlebar 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); | |
49 FRIEND_TEST_ALL_PREFIXES(PanelBrowserViewTest, ShowOrHideSettingsButton); | |
50 FRIEND_TEST_ALL_PREFIXES(PanelBrowserViewTest, SetBoundsAnimation); | |
51 | 48 |
52 enum MouseDraggingState { | 49 enum MouseDraggingState { |
53 NO_DRAGGING, | 50 NO_DRAGGING, |
54 DRAGGING_STARTED, | 51 DRAGGING_STARTED, |
55 DRAGGING_ENDED | 52 DRAGGING_ENDED |
56 }; | 53 }; |
57 | 54 |
58 // Overridden from BrowserView: | 55 // Overridden from BrowserView: |
59 virtual void Init() OVERRIDE; | 56 virtual void Init() OVERRIDE; |
60 virtual void Close() OVERRIDE; | 57 virtual void Close() OVERRIDE; |
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
152 base::TimeTicks attention_cleared_time_; | 149 base::TimeTicks attention_cleared_time_; |
153 | 150 |
154 // The last view that had focus in the panel. This is saved so that focus can | 151 // The last view that had focus in the panel. This is saved so that focus can |
155 // be restored properly when a drag ends. | 152 // be restored properly when a drag ends. |
156 views::View* old_focused_view_; | 153 views::View* old_focused_view_; |
157 | 154 |
158 DISALLOW_COPY_AND_ASSIGN(PanelBrowserView); | 155 DISALLOW_COPY_AND_ASSIGN(PanelBrowserView); |
159 }; | 156 }; |
160 | 157 |
161 #endif // CHROME_BROWSER_UI_PANELS_PANEL_BROWSER_VIEW_H_ | 158 #endif // CHROME_BROWSER_UI_PANELS_PANEL_BROWSER_VIEW_H_ |
OLD | NEW |