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

Side by Side Diff: chrome/browser/ui/views/frame/browser_non_client_frame_view_ash.h

Issue 273223002: views: Make view::Views::GetPreferredSize() const. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add two more const for Windows. 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_FRAME_BROWSER_NON_CLIENT_FRAME_VIEW_ASH_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_NON_CLIENT_FRAME_VIEW_ASH_H_
6 #define CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_NON_CLIENT_FRAME_VIEW_ASH_H_ 6 #define CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_NON_CLIENT_FRAME_VIEW_ASH_H_
7 7
8 #include "ash/shell_observer.h" 8 #include "ash/shell_observer.h"
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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 virtual void ResetWindowControls() OVERRIDE; 51 virtual void ResetWindowControls() OVERRIDE;
52 virtual void UpdateWindowIcon() OVERRIDE; 52 virtual void UpdateWindowIcon() OVERRIDE;
53 virtual void UpdateWindowTitle() OVERRIDE; 53 virtual void UpdateWindowTitle() OVERRIDE;
54 54
55 // views::View overrides: 55 // views::View overrides:
56 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE; 56 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE;
57 virtual void Layout() OVERRIDE; 57 virtual void Layout() OVERRIDE;
58 virtual const char* GetClassName() const OVERRIDE; 58 virtual const char* GetClassName() const OVERRIDE;
59 virtual bool HitTestRect(const gfx::Rect& rect) const OVERRIDE; 59 virtual bool HitTestRect(const gfx::Rect& rect) const OVERRIDE;
60 virtual void GetAccessibleState(ui::AXViewState* state) OVERRIDE; 60 virtual void GetAccessibleState(ui::AXViewState* state) OVERRIDE;
61 virtual gfx::Size GetMinimumSize() OVERRIDE; 61 virtual gfx::Size GetMinimumSize() const OVERRIDE;
62 62
63 // ash::ShellObserver: 63 // ash::ShellObserver:
64 virtual void OnMaximizeModeStarted() OVERRIDE; 64 virtual void OnMaximizeModeStarted() OVERRIDE;
65 virtual void OnMaximizeModeEnded() OVERRIDE; 65 virtual void OnMaximizeModeEnded() OVERRIDE;
66 66
67 // Overridden from chrome::TabIconViewModel: 67 // Overridden from chrome::TabIconViewModel:
68 virtual bool ShouldTabIconViewAnimate() const OVERRIDE; 68 virtual bool ShouldTabIconViewAnimate() const OVERRIDE;
69 virtual gfx::ImageSkia GetFaviconForTabIconView() OVERRIDE; 69 virtual gfx::ImageSkia GetFaviconForTabIconView() OVERRIDE;
70 70
71 private: 71 private:
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 scoped_ptr<ash::HeaderPainter> header_painter_; 121 scoped_ptr<ash::HeaderPainter> header_painter_;
122 122
123 // Updates the hittest bounds overrides based on the window show type. 123 // Updates the hittest bounds overrides based on the window show type.
124 scoped_ptr<ash::FrameBorderHitTestController> 124 scoped_ptr<ash::FrameBorderHitTestController>
125 frame_border_hit_test_controller_; 125 frame_border_hit_test_controller_;
126 126
127 DISALLOW_COPY_AND_ASSIGN(BrowserNonClientFrameViewAsh); 127 DISALLOW_COPY_AND_ASSIGN(BrowserNonClientFrameViewAsh);
128 }; 128 };
129 129
130 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_NON_CLIENT_FRAME_VIEW_ASH_H_ 130 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_NON_CLIENT_FRAME_VIEW_ASH_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698