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

Side by Side Diff: chrome/browser/ui/views/autofill/info_bubble.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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_AUTOFILL_INFO_BUBBLE_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_AUTOFILL_INFO_BUBBLE_H_
6 #define CHROME_BROWSER_UI_VIEWS_AUTOFILL_INFO_BUBBLE_H_ 6 #define CHROME_BROWSER_UI_VIEWS_AUTOFILL_INFO_BUBBLE_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "base/strings/string16.h" 10 #include "base/strings/string16.h"
(...skipping 15 matching lines...) Expand all
26 26
27 // Hides and closes the bubble. 27 // Hides and closes the bubble.
28 void Hide(); 28 void Hide();
29 29
30 // Updates the position of the bubble. 30 // Updates the position of the bubble.
31 void UpdatePosition(); 31 void UpdatePosition();
32 32
33 // views::BubbleDelegateView: 33 // views::BubbleDelegateView:
34 virtual views::NonClientFrameView* CreateNonClientFrameView( 34 virtual views::NonClientFrameView* CreateNonClientFrameView(
35 views::Widget* widget) OVERRIDE; 35 views::Widget* widget) OVERRIDE;
36 virtual gfx::Size GetPreferredSize() OVERRIDE; 36 virtual gfx::Size GetPreferredSize() const OVERRIDE;
37 virtual void OnWidgetDestroyed(views::Widget* widget) OVERRIDE; 37 virtual void OnWidgetDestroyed(views::Widget* widget) OVERRIDE;
38 virtual void OnWidgetBoundsChanged(views::Widget* widget, 38 virtual void OnWidgetBoundsChanged(views::Widget* widget,
39 const gfx::Rect& new_bounds) OVERRIDE; 39 const gfx::Rect& new_bounds) OVERRIDE;
40 40
41 views::View* anchor() { return anchor_; } 41 views::View* anchor() { return anchor_; }
42 42
43 void set_align_to_anchor_edge(bool align_to_anchor_edge) { 43 void set_align_to_anchor_edge(bool align_to_anchor_edge) {
44 align_to_anchor_edge_ = align_to_anchor_edge; 44 align_to_anchor_edge_ = align_to_anchor_edge;
45 } 45 }
46 46
(...skipping 19 matching lines...) Expand all
66 66
67 // Whether the bubble should be shown above the anchor (default is below). 67 // Whether the bubble should be shown above the anchor (default is below).
68 bool show_above_anchor_; 68 bool show_above_anchor_;
69 69
70 DISALLOW_COPY_AND_ASSIGN(InfoBubble); 70 DISALLOW_COPY_AND_ASSIGN(InfoBubble);
71 }; 71 };
72 72
73 } // namespace autofill 73 } // namespace autofill
74 74
75 #endif // CHROME_BROWSER_UI_VIEWS_AUTOFILL_INFO_BUBBLE_H_ 75 #endif // CHROME_BROWSER_UI_VIEWS_AUTOFILL_INFO_BUBBLE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698