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

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

Issue 273223002: views: Make view::Views::GetPreferredSize() const. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase to 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 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 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
149 virtual bool CanActivate() const OVERRIDE; 149 virtual bool CanActivate() const OVERRIDE;
150 virtual views::NonClientFrameView* CreateNonClientFrameView( 150 virtual views::NonClientFrameView* CreateNonClientFrameView(
151 views::Widget* widget) OVERRIDE; 151 views::Widget* widget) OVERRIDE;
152 virtual bool WidgetHasHitTestMask() const OVERRIDE; 152 virtual bool WidgetHasHitTestMask() const OVERRIDE;
153 virtual void GetWidgetHitTestMask(gfx::Path* mask) const OVERRIDE; 153 virtual void GetWidgetHitTestMask(gfx::Path* mask) const OVERRIDE;
154 154
155 // Overridden from views::BubbleDelegateView. 155 // Overridden from views::BubbleDelegateView.
156 virtual gfx::Rect GetAnchorRect() OVERRIDE; 156 virtual gfx::Rect GetAnchorRect() OVERRIDE;
157 157
158 // Overridden from views::View. 158 // Overridden from views::View.
159 virtual gfx::Size GetPreferredSize() OVERRIDE; 159 virtual gfx::Size GetPreferredSize() const OVERRIDE;
160 virtual gfx::Size GetMaximumSize() OVERRIDE; 160 virtual gfx::Size GetMaximumSize() OVERRIDE;
161 virtual int GetHeightForWidth(int width) OVERRIDE; 161 virtual int GetHeightForWidth(int width) const OVERRIDE;
162 virtual void OnMouseEntered(const ui::MouseEvent& event) OVERRIDE; 162 virtual void OnMouseEntered(const ui::MouseEvent& event) OVERRIDE;
163 virtual void OnMouseExited(const ui::MouseEvent& event) OVERRIDE; 163 virtual void OnMouseExited(const ui::MouseEvent& event) OVERRIDE;
164 virtual void GetAccessibleState(ui::AXViewState* state) OVERRIDE; 164 virtual void GetAccessibleState(ui::AXViewState* state) OVERRIDE;
165 165
166 // Overridden from MouseWatcherListener 166 // Overridden from MouseWatcherListener
167 virtual void MouseMovedOutOfHost() OVERRIDE; 167 virtual void MouseMovedOutOfHost() OVERRIDE;
168 168
169 protected: 169 protected:
170 TrayBubbleView(gfx::NativeView parent_window, 170 TrayBubbleView(gfx::NativeView parent_window,
171 views::View* anchor, 171 views::View* anchor,
(...skipping 22 matching lines...) Expand all
194 194
195 // Used to find any mouse movements. 195 // Used to find any mouse movements.
196 scoped_ptr<MouseWatcher> mouse_watcher_; 196 scoped_ptr<MouseWatcher> mouse_watcher_;
197 197
198 DISALLOW_COPY_AND_ASSIGN(TrayBubbleView); 198 DISALLOW_COPY_AND_ASSIGN(TrayBubbleView);
199 }; 199 };
200 200
201 } // namespace views 201 } // namespace views
202 202
203 #endif // UI_VIEWS_BUBBLE_TRAY_BUBBLE_VIEW_H_ 203 #endif // UI_VIEWS_BUBBLE_TRAY_BUBBLE_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698