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

Side by Side Diff: ui/views/bubble/tray_bubble_view.h

Issue 296823002: views: Also const-ify GetMaximumSize(). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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
« no previous file with comments | « chrome/browser/ui/views/panels/panel_view.cc ('k') | ui/views/bubble/tray_bubble_view.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 UI_VIEWS_BUBBLE_TRAY_BUBBLE_VIEW_H_ 5 #ifndef UI_VIEWS_BUBBLE_TRAY_BUBBLE_VIEW_H_
6 #define UI_VIEWS_BUBBLE_TRAY_BUBBLE_VIEW_H_ 6 #define UI_VIEWS_BUBBLE_TRAY_BUBBLE_VIEW_H_
7 7
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "ui/views/bubble/bubble_delegate.h" 9 #include "ui/views/bubble/bubble_delegate.h"
10 #include "ui/views/mouse_watcher.h" 10 #include "ui/views/mouse_watcher.h"
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after
151 virtual views::NonClientFrameView* CreateNonClientFrameView( 151 virtual views::NonClientFrameView* CreateNonClientFrameView(
152 views::Widget* widget) OVERRIDE; 152 views::Widget* widget) OVERRIDE;
153 virtual bool WidgetHasHitTestMask() const OVERRIDE; 153 virtual bool WidgetHasHitTestMask() const OVERRIDE;
154 virtual void GetWidgetHitTestMask(gfx::Path* mask) const OVERRIDE; 154 virtual void GetWidgetHitTestMask(gfx::Path* mask) const OVERRIDE;
155 155
156 // Overridden from views::BubbleDelegateView. 156 // Overridden from views::BubbleDelegateView.
157 virtual gfx::Rect GetAnchorRect() const OVERRIDE; 157 virtual gfx::Rect GetAnchorRect() const OVERRIDE;
158 158
159 // Overridden from views::View. 159 // Overridden from views::View.
160 virtual gfx::Size GetPreferredSize() const OVERRIDE; 160 virtual gfx::Size GetPreferredSize() const OVERRIDE;
161 virtual gfx::Size GetMaximumSize() OVERRIDE; 161 virtual gfx::Size GetMaximumSize() const OVERRIDE;
162 virtual int GetHeightForWidth(int width) const OVERRIDE; 162 virtual int GetHeightForWidth(int width) const OVERRIDE;
163 virtual void OnMouseEntered(const ui::MouseEvent& event) OVERRIDE; 163 virtual void OnMouseEntered(const ui::MouseEvent& event) OVERRIDE;
164 virtual void OnMouseExited(const ui::MouseEvent& event) OVERRIDE; 164 virtual void OnMouseExited(const ui::MouseEvent& event) OVERRIDE;
165 virtual void GetAccessibleState(ui::AXViewState* state) OVERRIDE; 165 virtual void GetAccessibleState(ui::AXViewState* state) OVERRIDE;
166 166
167 // Overridden from MouseWatcherListener 167 // Overridden from MouseWatcherListener
168 virtual void MouseMovedOutOfHost() OVERRIDE; 168 virtual void MouseMovedOutOfHost() OVERRIDE;
169 169
170 protected: 170 protected:
171 TrayBubbleView(gfx::NativeView parent_window, 171 TrayBubbleView(gfx::NativeView parent_window,
(...skipping 23 matching lines...) Expand all
195 195
196 // Used to find any mouse movements. 196 // Used to find any mouse movements.
197 scoped_ptr<MouseWatcher> mouse_watcher_; 197 scoped_ptr<MouseWatcher> mouse_watcher_;
198 198
199 DISALLOW_COPY_AND_ASSIGN(TrayBubbleView); 199 DISALLOW_COPY_AND_ASSIGN(TrayBubbleView);
200 }; 200 };
201 201
202 } // namespace views 202 } // namespace views
203 203
204 #endif // UI_VIEWS_BUBBLE_TRAY_BUBBLE_VIEW_H_ 204 #endif // UI_VIEWS_BUBBLE_TRAY_BUBBLE_VIEW_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/panels/panel_view.cc ('k') | ui/views/bubble/tray_bubble_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698