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 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
100 bool* is_keyboard_shortcut) OVERRIDE; | 100 bool* is_keyboard_shortcut) OVERRIDE; |
101 virtual void HandlePanelKeyboardEvent( | 101 virtual void HandlePanelKeyboardEvent( |
102 const NativeWebKeyboardEvent& event) OVERRIDE; | 102 const NativeWebKeyboardEvent& event) OVERRIDE; |
103 virtual gfx::Size WindowSizeFromContentSize( | 103 virtual gfx::Size WindowSizeFromContentSize( |
104 const gfx::Size& content_size) const OVERRIDE; | 104 const gfx::Size& content_size) const OVERRIDE; |
105 virtual gfx::Size ContentSizeFromWindowSize( | 105 virtual gfx::Size ContentSizeFromWindowSize( |
106 const gfx::Size& window_size) const OVERRIDE; | 106 const gfx::Size& window_size) const OVERRIDE; |
107 virtual int TitleOnlyHeight() const OVERRIDE; | 107 virtual int TitleOnlyHeight() const OVERRIDE; |
108 virtual Browser* GetPanelBrowser() const OVERRIDE; | 108 virtual Browser* GetPanelBrowser() const OVERRIDE; |
109 virtual void DestroyPanelBrowser() OVERRIDE; | 109 virtual void DestroyPanelBrowser() OVERRIDE; |
| 110 virtual gfx::Size IconOnlySize() const OVERRIDE; |
| 111 virtual void EnsurePanelFullyVisible() OVERRIDE; |
110 | 112 |
111 // Overridden from AnimationDelegate: | 113 // Overridden from AnimationDelegate: |
112 virtual void AnimationEnded(const ui::Animation* animation) OVERRIDE; | 114 virtual void AnimationEnded(const ui::Animation* animation) OVERRIDE; |
113 virtual void AnimationProgressed(const ui::Animation* animation) OVERRIDE; | 115 virtual void AnimationProgressed(const ui::Animation* animation) OVERRIDE; |
114 | 116 |
115 bool EndDragging(bool cancelled); | 117 bool EndDragging(bool cancelled); |
116 | 118 |
117 void StopDrawingAttention(); | 119 void StopDrawingAttention(); |
118 | 120 |
119 scoped_ptr<Panel> panel_; | 121 scoped_ptr<Panel> panel_; |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
151 base::TimeTicks attention_cleared_time_; | 153 base::TimeTicks attention_cleared_time_; |
152 | 154 |
153 // The last view that had focus in the panel. This is saved so that focus can | 155 // The last view that had focus in the panel. This is saved so that focus can |
154 // be restored properly when a drag ends. | 156 // be restored properly when a drag ends. |
155 views::View* old_focused_view_; | 157 views::View* old_focused_view_; |
156 | 158 |
157 DISALLOW_COPY_AND_ASSIGN(PanelBrowserView); | 159 DISALLOW_COPY_AND_ASSIGN(PanelBrowserView); |
158 }; | 160 }; |
159 | 161 |
160 #endif // CHROME_BROWSER_UI_PANELS_PANEL_BROWSER_VIEW_H_ | 162 #endif // CHROME_BROWSER_UI_PANELS_PANEL_BROWSER_VIEW_H_ |
OLD | NEW |