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 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
114 // Overridden from AnimationDelegate: | 114 // Overridden from AnimationDelegate: |
115 virtual void AnimationEnded(const ui::Animation* animation) OVERRIDE; | 115 virtual void AnimationEnded(const ui::Animation* animation) OVERRIDE; |
116 virtual void AnimationProgressed(const ui::Animation* animation) OVERRIDE; | 116 virtual void AnimationProgressed(const ui::Animation* animation) OVERRIDE; |
117 | 117 |
118 bool EndDragging(bool cancelled); | 118 bool EndDragging(bool cancelled); |
119 | 119 |
120 void StopDrawingAttention(); | 120 void StopDrawingAttention(); |
121 | 121 |
122 void SetBoundsInternal(const gfx::Rect& bounds, bool animate); | 122 void SetBoundsInternal(const gfx::Rect& bounds, bool animate); |
123 | 123 |
| 124 void ShowOrHidePanelAppIcon(bool show); |
| 125 |
124 scoped_ptr<Panel> panel_; | 126 scoped_ptr<Panel> panel_; |
125 gfx::Rect bounds_; | 127 gfx::Rect bounds_; |
126 | 128 |
127 // Is the panel being closed? Do not use it when it is closed. | 129 // Is the panel being closed? Do not use it when it is closed. |
128 bool closed_; | 130 bool closed_; |
129 | 131 |
130 // Is the panel receiving the focus? | 132 // Is the panel receiving the focus? |
131 bool focused_; | 133 bool focused_; |
132 | 134 |
133 // Is the mouse button currently down? | 135 // Is the mouse button currently down? |
(...skipping 22 matching lines...) Expand all Loading... |
156 base::TimeTicks attention_cleared_time_; | 158 base::TimeTicks attention_cleared_time_; |
157 | 159 |
158 // The last view that had focus in the panel. This is saved so that focus can | 160 // The last view that had focus in the panel. This is saved so that focus can |
159 // be restored properly when a drag ends. | 161 // be restored properly when a drag ends. |
160 views::View* old_focused_view_; | 162 views::View* old_focused_view_; |
161 | 163 |
162 DISALLOW_COPY_AND_ASSIGN(PanelBrowserView); | 164 DISALLOW_COPY_AND_ASSIGN(PanelBrowserView); |
163 }; | 165 }; |
164 | 166 |
165 #endif // CHROME_BROWSER_UI_PANELS_PANEL_BROWSER_VIEW_H_ | 167 #endif // CHROME_BROWSER_UI_PANELS_PANEL_BROWSER_VIEW_H_ |
OLD | NEW |