| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_VIEWS_PANELS_PANEL_VIEW_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_PANELS_PANEL_VIEW_H_ |
| 6 #define CHROME_BROWSER_UI_VIEWS_PANELS_PANEL_VIEW_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_PANELS_PANEL_VIEW_H_ |
| 7 | 7 |
| 8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
| 9 #include "chrome/browser/ui/panels/native_panel.h" | 9 #include "chrome/browser/ui/panels/native_panel.h" |
| 10 #include "ui/base/animation/animation_delegate.h" | 10 #include "ui/base/animation/animation_delegate.h" |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 73 Panel::ExpansionState new_state) OVERRIDE; | 73 Panel::ExpansionState new_state) OVERRIDE; |
| 74 virtual void AttachWebContents(content::WebContents* contents) OVERRIDE; | 74 virtual void AttachWebContents(content::WebContents* contents) OVERRIDE; |
| 75 virtual void DetachWebContents(content::WebContents* contents) OVERRIDE; | 75 virtual void DetachWebContents(content::WebContents* contents) OVERRIDE; |
| 76 virtual gfx::Size WindowSizeFromContentSize( | 76 virtual gfx::Size WindowSizeFromContentSize( |
| 77 const gfx::Size& content_size) const OVERRIDE; | 77 const gfx::Size& content_size) const OVERRIDE; |
| 78 virtual gfx::Size ContentSizeFromWindowSize( | 78 virtual gfx::Size ContentSizeFromWindowSize( |
| 79 const gfx::Size& window_size) const OVERRIDE; | 79 const gfx::Size& window_size) const OVERRIDE; |
| 80 virtual int TitleOnlyHeight() const OVERRIDE; | 80 virtual int TitleOnlyHeight() const OVERRIDE; |
| 81 virtual void MinimizePanelBySystem() OVERRIDE; | 81 virtual void MinimizePanelBySystem() OVERRIDE; |
| 82 virtual bool IsPanelMinimizedBySystem() const OVERRIDE; | 82 virtual bool IsPanelMinimizedBySystem() const OVERRIDE; |
| 83 virtual void SetPanelHasShadow(bool has_shadow) OVERRIDE; |
| 83 virtual NativePanelTesting* CreateNativePanelTesting() OVERRIDE; | 84 virtual NativePanelTesting* CreateNativePanelTesting() OVERRIDE; |
| 84 | 85 |
| 85 // Overridden from views::View: | 86 // Overridden from views::View: |
| 86 virtual gfx::Size GetMinimumSize() OVERRIDE; | 87 virtual gfx::Size GetMinimumSize() OVERRIDE; |
| 87 virtual gfx::Size GetMaximumSize() OVERRIDE; | 88 virtual gfx::Size GetMaximumSize() OVERRIDE; |
| 88 | 89 |
| 89 // Return true if the mouse event is handled. | 90 // Return true if the mouse event is handled. |
| 90 // |mouse_location| is in screen coordinate system. | 91 // |mouse_location| is in screen coordinate system. |
| 91 bool OnTitlebarMousePressed(const gfx::Point& mouse_location); | 92 bool OnTitlebarMousePressed(const gfx::Point& mouse_location); |
| 92 bool OnTitlebarMouseDragged(const gfx::Point& mouse_location); | 93 bool OnTitlebarMouseDragged(const gfx::Point& mouse_location); |
| (...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 248 | 249 |
| 249 #if defined(OS_WIN) | 250 #if defined(OS_WIN) |
| 250 // Used to provide custom taskbar thumbnail for Windows 7 and later. | 251 // Used to provide custom taskbar thumbnail for Windows 7 and later. |
| 251 scoped_ptr<TaskbarWindowThumbnailerWin> thumbnailer_; | 252 scoped_ptr<TaskbarWindowThumbnailerWin> thumbnailer_; |
| 252 #endif | 253 #endif |
| 253 | 254 |
| 254 DISALLOW_COPY_AND_ASSIGN(PanelView); | 255 DISALLOW_COPY_AND_ASSIGN(PanelView); |
| 255 }; | 256 }; |
| 256 | 257 |
| 257 #endif // CHROME_BROWSER_UI_VIEWS_PANELS_PANEL_VIEW_H_ | 258 #endif // CHROME_BROWSER_UI_VIEWS_PANELS_PANEL_VIEW_H_ |
| OLD | NEW |