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 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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; |
90 virtual void DrawAttention() OVERRIDE; | 90 virtual void DrawAttention() OVERRIDE; |
91 virtual bool IsDrawingAttention() const OVERRIDE; | 91 virtual bool IsDrawingAttention() const OVERRIDE; |
92 virtual bool PreHandlePanelKeyboardEvent( | 92 virtual bool PreHandlePanelKeyboardEvent( |
93 const NativeWebKeyboardEvent& event, | 93 const NativeWebKeyboardEvent& event, |
94 bool* is_keyboard_shortcut) OVERRIDE; | 94 bool* is_keyboard_shortcut) OVERRIDE; |
95 virtual void HandlePanelKeyboardEvent( | 95 virtual void HandlePanelKeyboardEvent( |
96 const NativeWebKeyboardEvent& event) OVERRIDE; | 96 const NativeWebKeyboardEvent& event) OVERRIDE; |
| 97 virtual gfx::Size GetNonClientAreaExtent() const OVERRIDE; |
| 98 virtual int GetRestoredHeight() const OVERRIDE; |
| 99 virtual void SetRestoredHeight(int height) OVERRIDE; |
97 virtual Browser* GetPanelBrowser() const OVERRIDE; | 100 virtual Browser* GetPanelBrowser() const OVERRIDE; |
98 virtual void DestroyPanelBrowser() OVERRIDE; | 101 virtual void DestroyPanelBrowser() OVERRIDE; |
99 | 102 |
100 // Overridden from AnimationDelegate: | 103 // Overridden from AnimationDelegate: |
101 virtual void AnimationProgressed(const ui::Animation* animation) OVERRIDE; | 104 virtual void AnimationProgressed(const ui::Animation* animation) OVERRIDE; |
102 | 105 |
103 bool EndDragging(bool cancelled); | 106 bool EndDragging(bool cancelled); |
104 | 107 |
105 void StopDrawingAttention(); | 108 void StopDrawingAttention(); |
106 | 109 |
107 scoped_ptr<Panel> panel_; | 110 scoped_ptr<Panel> panel_; |
108 gfx::Rect bounds_; | 111 gfx::Rect bounds_; |
109 | 112 |
110 // Stores the original height of the panel so we can restore it after it's | 113 // Stores the full height of the panel so we can restore it after it's |
111 // been minimized. | 114 // been minimized. |
112 int original_height_; | 115 int restored_height_; |
113 | 116 |
114 // Is the panel being closed? Do not use it when it is closed. | 117 // Is the panel being closed? Do not use it when it is closed. |
115 bool closed_; | 118 bool closed_; |
116 | 119 |
117 // Is the panel receiving the focus? | 120 // Is the panel receiving the focus? |
118 bool focused_; | 121 bool focused_; |
119 | 122 |
120 // Is the mouse button currently down? | 123 // Is the mouse button currently down? |
121 bool mouse_pressed_; | 124 bool mouse_pressed_; |
122 | 125 |
(...skipping 12 matching lines...) Expand all Loading... |
135 bool is_drawing_attention_; | 138 bool is_drawing_attention_; |
136 | 139 |
137 // Timestamp to prevent minimizing the panel when the user clicks the titlebar | 140 // Timestamp to prevent minimizing the panel when the user clicks the titlebar |
138 // to clear the attension state. | 141 // to clear the attension state. |
139 base::TimeTicks attention_cleared_time_; | 142 base::TimeTicks attention_cleared_time_; |
140 | 143 |
141 DISALLOW_COPY_AND_ASSIGN(PanelBrowserView); | 144 DISALLOW_COPY_AND_ASSIGN(PanelBrowserView); |
142 }; | 145 }; |
143 | 146 |
144 #endif // CHROME_BROWSER_UI_PANELS_PANEL_BROWSER_VIEW_H_ | 147 #endif // CHROME_BROWSER_UI_PANELS_PANEL_BROWSER_VIEW_H_ |
OLD | NEW |