| 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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 62 virtual void PanelExpansionStateChanging( | 62 virtual void PanelExpansionStateChanging( |
| 63 Panel::ExpansionState old_state, | 63 Panel::ExpansionState old_state, |
| 64 Panel::ExpansionState new_state) OVERRIDE; | 64 Panel::ExpansionState new_state) OVERRIDE; |
| 65 virtual void AttachWebContents(content::WebContents* contents) OVERRIDE; | 65 virtual void AttachWebContents(content::WebContents* contents) OVERRIDE; |
| 66 virtual void DetachWebContents(content::WebContents* contents) OVERRIDE; | 66 virtual void DetachWebContents(content::WebContents* contents) OVERRIDE; |
| 67 virtual gfx::Size WindowSizeFromContentSize( | 67 virtual gfx::Size WindowSizeFromContentSize( |
| 68 const gfx::Size& content_size) const OVERRIDE; | 68 const gfx::Size& content_size) const OVERRIDE; |
| 69 virtual gfx::Size ContentSizeFromWindowSize( | 69 virtual gfx::Size ContentSizeFromWindowSize( |
| 70 const gfx::Size& window_size) const OVERRIDE; | 70 const gfx::Size& window_size) const OVERRIDE; |
| 71 virtual int TitleOnlyHeight() const OVERRIDE; | 71 virtual int TitleOnlyHeight() const OVERRIDE; |
| 72 virtual void UpdatePanelStackingProperty() OVERRIDE; |
| 72 virtual NativePanelTesting* CreateNativePanelTesting() OVERRIDE; | 73 virtual NativePanelTesting* CreateNativePanelTesting() OVERRIDE; |
| 73 | 74 |
| 74 // Return true if the mouse event is handled. | 75 // Return true if the mouse event is handled. |
| 75 // |mouse_location| is in screen coordinate system. | 76 // |mouse_location| is in screen coordinate system. |
| 76 bool OnTitlebarMousePressed(const gfx::Point& mouse_location); | 77 bool OnTitlebarMousePressed(const gfx::Point& mouse_location); |
| 77 bool OnTitlebarMouseDragged(const gfx::Point& mouse_location); | 78 bool OnTitlebarMouseDragged(const gfx::Point& mouse_location); |
| 78 bool OnTitlebarMouseReleased(panel::ClickModifier modifier); | 79 bool OnTitlebarMouseReleased(panel::ClickModifier modifier); |
| 79 bool OnTitlebarMouseCaptureLost(); | 80 bool OnTitlebarMouseCaptureLost(); |
| 80 | 81 |
| 81 PanelFrameView* GetFrameView() const; | 82 PanelFrameView* GetFrameView() const; |
| (...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 205 | 206 |
| 206 #if defined(OS_WIN) && !defined(USE_ASH) && !defined(USE_AURA) | 207 #if defined(OS_WIN) && !defined(USE_ASH) && !defined(USE_AURA) |
| 207 // Used to provide custom taskbar thumbnail for Windows 7 and later. | 208 // Used to provide custom taskbar thumbnail for Windows 7 and later. |
| 208 scoped_ptr<TaskbarWindowThumbnailerWin> thumbnailer_; | 209 scoped_ptr<TaskbarWindowThumbnailerWin> thumbnailer_; |
| 209 #endif | 210 #endif |
| 210 | 211 |
| 211 DISALLOW_COPY_AND_ASSIGN(PanelView); | 212 DISALLOW_COPY_AND_ASSIGN(PanelView); |
| 212 }; | 213 }; |
| 213 | 214 |
| 214 #endif // CHROME_BROWSER_UI_VIEWS_PANELS_PANEL_VIEW_H_ | 215 #endif // CHROME_BROWSER_UI_VIEWS_PANELS_PANEL_VIEW_H_ |
| OLD | NEW |