| 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 GetIconifiedPanelSize() const OVERRIDE; |
| 111 virtual void EnsurePanelFullyVisible() OVERRIDE; |
| 112 virtual void UpdatePanelIconInDesktopBar(PanelIconState state) OVERRIDE; |
| 110 | 113 |
| 111 // Overridden from AnimationDelegate: | 114 // Overridden from AnimationDelegate: |
| 112 virtual void AnimationEnded(const ui::Animation* animation) OVERRIDE; | 115 virtual void AnimationEnded(const ui::Animation* animation) OVERRIDE; |
| 113 virtual void AnimationProgressed(const ui::Animation* animation) OVERRIDE; | 116 virtual void AnimationProgressed(const ui::Animation* animation) OVERRIDE; |
| 114 | 117 |
| 115 bool EndDragging(bool cancelled); | 118 bool EndDragging(bool cancelled); |
| 116 | 119 |
| 117 void StopDrawingAttention(); | 120 void StopDrawingAttention(); |
| 118 | 121 |
| 119 scoped_ptr<Panel> panel_; | 122 scoped_ptr<Panel> panel_; |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 151 base::TimeTicks attention_cleared_time_; | 154 base::TimeTicks attention_cleared_time_; |
| 152 | 155 |
| 153 // The last view that had focus in the panel. This is saved so that focus can | 156 // The last view that had focus in the panel. This is saved so that focus can |
| 154 // be restored properly when a drag ends. | 157 // be restored properly when a drag ends. |
| 155 views::View* old_focused_view_; | 158 views::View* old_focused_view_; |
| 156 | 159 |
| 157 DISALLOW_COPY_AND_ASSIGN(PanelBrowserView); | 160 DISALLOW_COPY_AND_ASSIGN(PanelBrowserView); |
| 158 }; | 161 }; |
| 159 | 162 |
| 160 #endif // CHROME_BROWSER_UI_PANELS_PANEL_BROWSER_VIEW_H_ | 163 #endif // CHROME_BROWSER_UI_PANELS_PANEL_BROWSER_VIEW_H_ |
| OLD | NEW |