Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(72)

Side by Side Diff: chrome/browser/ui/views/panels/panel_view.h

Issue 273223002: views: Make view::Views::GetPreferredSize() const. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: More compile fix for ToT Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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/gfx/animation/animation_delegate.h" 10 #include "ui/gfx/animation/animation_delegate.h"
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 virtual gfx::Size ContentSizeFromWindowSize( 76 virtual gfx::Size ContentSizeFromWindowSize(
77 const gfx::Size& window_size) const OVERRIDE; 77 const gfx::Size& window_size) const OVERRIDE;
78 virtual int TitleOnlyHeight() const OVERRIDE; 78 virtual int TitleOnlyHeight() const OVERRIDE;
79 virtual void MinimizePanelBySystem() OVERRIDE; 79 virtual void MinimizePanelBySystem() OVERRIDE;
80 virtual bool IsPanelMinimizedBySystem() const OVERRIDE; 80 virtual bool IsPanelMinimizedBySystem() const OVERRIDE;
81 virtual bool IsPanelShownOnActiveDesktop() const OVERRIDE; 81 virtual bool IsPanelShownOnActiveDesktop() const OVERRIDE;
82 virtual void ShowShadow(bool show) OVERRIDE; 82 virtual void ShowShadow(bool show) OVERRIDE;
83 virtual NativePanelTesting* CreateNativePanelTesting() OVERRIDE; 83 virtual NativePanelTesting* CreateNativePanelTesting() OVERRIDE;
84 84
85 // Overridden from views::View: 85 // Overridden from views::View:
86 virtual gfx::Size GetMinimumSize() OVERRIDE; 86 virtual gfx::Size GetMinimumSize() const OVERRIDE;
87 virtual gfx::Size GetMaximumSize() OVERRIDE; 87 virtual gfx::Size GetMaximumSize() OVERRIDE;
88 88
89 // Return true if the mouse event is handled. 89 // Return true if the mouse event is handled.
90 // |mouse_location| is in screen coordinate system. 90 // |mouse_location| is in screen coordinate system.
91 bool OnTitlebarMousePressed(const gfx::Point& mouse_location); 91 bool OnTitlebarMousePressed(const gfx::Point& mouse_location);
92 bool OnTitlebarMouseDragged(const gfx::Point& mouse_location); 92 bool OnTitlebarMouseDragged(const gfx::Point& mouse_location);
93 bool OnTitlebarMouseReleased(panel::ClickModifier modifier); 93 bool OnTitlebarMouseReleased(panel::ClickModifier modifier);
94 bool OnTitlebarMouseCaptureLost(); 94 bool OnTitlebarMouseCaptureLost();
95 95
96 PanelFrameView* GetFrameView() const; 96 PanelFrameView* GetFrameView() const;
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after
250 250
251 #if defined(OS_WIN) 251 #if defined(OS_WIN)
252 // Used to provide custom taskbar thumbnail for Windows 7 and later. 252 // Used to provide custom taskbar thumbnail for Windows 7 and later.
253 scoped_ptr<TaskbarWindowThumbnailerWin> thumbnailer_; 253 scoped_ptr<TaskbarWindowThumbnailerWin> thumbnailer_;
254 #endif 254 #endif
255 255
256 DISALLOW_COPY_AND_ASSIGN(PanelView); 256 DISALLOW_COPY_AND_ASSIGN(PanelView);
257 }; 257 };
258 258
259 #endif // CHROME_BROWSER_UI_VIEWS_PANELS_PANEL_VIEW_H_ 259 #endif // CHROME_BROWSER_UI_VIEWS_PANELS_PANEL_VIEW_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/panels/panel_frame_view.cc ('k') | chrome/browser/ui/views/panels/panel_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698