| 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 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 81 virtual void ActivatePanel() OVERRIDE; | 81 virtual void ActivatePanel() OVERRIDE; |
| 82 virtual void DeactivatePanel() OVERRIDE; | 82 virtual void DeactivatePanel() OVERRIDE; |
| 83 virtual bool IsPanelActive() const OVERRIDE; | 83 virtual bool IsPanelActive() const OVERRIDE; |
| 84 virtual gfx::NativeWindow GetNativePanelHandle() OVERRIDE; | 84 virtual gfx::NativeWindow GetNativePanelHandle() OVERRIDE; |
| 85 virtual void UpdatePanelTitleBar() OVERRIDE; | 85 virtual void UpdatePanelTitleBar() OVERRIDE; |
| 86 virtual void ShowTaskManagerForPanel() OVERRIDE; | 86 virtual void ShowTaskManagerForPanel() OVERRIDE; |
| 87 virtual FindBar* CreatePanelFindBar() OVERRIDE; | 87 virtual FindBar* CreatePanelFindBar() OVERRIDE; |
| 88 virtual void NotifyPanelOnUserChangedTheme() OVERRIDE; | 88 virtual void NotifyPanelOnUserChangedTheme() OVERRIDE; |
| 89 virtual void DrawAttention() OVERRIDE; | 89 virtual void DrawAttention() OVERRIDE; |
| 90 virtual bool IsDrawingAttention() const OVERRIDE; | 90 virtual bool IsDrawingAttention() const OVERRIDE; |
| 91 virtual gfx::Size GetNonClientAreaExtent() const OVERRIDE; |
| 92 virtual int GetRestoredHeight() const OVERRIDE; |
| 93 virtual void SetRestoredHeight(int height) OVERRIDE; |
| 91 virtual Browser* GetPanelBrowser() const OVERRIDE; | 94 virtual Browser* GetPanelBrowser() const OVERRIDE; |
| 92 virtual void DestroyPanelBrowser() OVERRIDE; | 95 virtual void DestroyPanelBrowser() OVERRIDE; |
| 93 virtual NativePanelTesting* GetNativePanelTesting() OVERRIDE; | 96 virtual NativePanelTesting* GetNativePanelTesting() OVERRIDE; |
| 94 | 97 |
| 95 // Overridden from AnimationDelegate: | 98 // Overridden from AnimationDelegate: |
| 96 virtual void AnimationProgressed(const ui::Animation* animation) OVERRIDE; | 99 virtual void AnimationProgressed(const ui::Animation* animation) OVERRIDE; |
| 97 | 100 |
| 98 bool EndDragging(bool cancelled); | 101 bool EndDragging(bool cancelled); |
| 99 | 102 |
| 100 void StopDrawingAttention(); | 103 void StopDrawingAttention(); |
| 101 | 104 |
| 102 scoped_ptr<Panel> panel_; | 105 scoped_ptr<Panel> panel_; |
| 103 gfx::Rect bounds_; | 106 gfx::Rect bounds_; |
| 104 | 107 |
| 105 // Stores the original height of the panel so we can restore it after it's | 108 // Stores the full height of the panel so we can restore it after it's |
| 106 // been minimized. | 109 // been minimized. |
| 107 int original_height_; | 110 int restored_height_; |
| 108 | 111 |
| 109 // Is the panel being closed? Do not use it when it is closed. | 112 // Is the panel being closed? Do not use it when it is closed. |
| 110 bool closed_; | 113 bool closed_; |
| 111 | 114 |
| 112 // Is the panel receiving the focus? | 115 // Is the panel receiving the focus? |
| 113 bool focused_; | 116 bool focused_; |
| 114 | 117 |
| 115 // Is the mouse button currently down? | 118 // Is the mouse button currently down? |
| 116 bool mouse_pressed_; | 119 bool mouse_pressed_; |
| 117 | 120 |
| (...skipping 12 matching lines...) Expand all Loading... |
| 130 bool is_drawing_attention_; | 133 bool is_drawing_attention_; |
| 131 | 134 |
| 132 // Timestamp to prevent minimizing the panel when the user clicks the titlebar | 135 // Timestamp to prevent minimizing the panel when the user clicks the titlebar |
| 133 // to clear the attension state. | 136 // to clear the attension state. |
| 134 base::TimeTicks attention_cleared_time_; | 137 base::TimeTicks attention_cleared_time_; |
| 135 | 138 |
| 136 DISALLOW_COPY_AND_ASSIGN(PanelBrowserView); | 139 DISALLOW_COPY_AND_ASSIGN(PanelBrowserView); |
| 137 }; | 140 }; |
| 138 | 141 |
| 139 #endif // CHROME_BROWSER_UI_PANELS_PANEL_BROWSER_VIEW_H_ | 142 #endif // CHROME_BROWSER_UI_PANELS_PANEL_BROWSER_VIEW_H_ |
| OLD | NEW |