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