OLD | NEW |
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 14 matching lines...) Expand all Loading... |
25 void Show(); | 25 void Show(); |
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() const 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 const views::View* anchor() const { return anchor_; } | 42 const views::View* anchor() const { return anchor_; } |
43 | 43 |
44 void set_align_to_anchor_edge(bool align_to_anchor_edge) { | 44 void set_align_to_anchor_edge(bool align_to_anchor_edge) { |
45 align_to_anchor_edge_ = align_to_anchor_edge; | 45 align_to_anchor_edge_ = align_to_anchor_edge; |
46 } | 46 } |
47 | 47 |
48 void set_preferred_width(int preferred_width) { | 48 void set_preferred_width(int preferred_width) { |
49 preferred_width_ = preferred_width; | 49 preferred_width_ = preferred_width; |
(...skipping 17 matching lines...) Expand all Loading... |
67 | 67 |
68 // Whether the bubble should be shown above the anchor (default is below). | 68 // Whether the bubble should be shown above the anchor (default is below). |
69 bool show_above_anchor_; | 69 bool show_above_anchor_; |
70 | 70 |
71 DISALLOW_COPY_AND_ASSIGN(InfoBubble); | 71 DISALLOW_COPY_AND_ASSIGN(InfoBubble); |
72 }; | 72 }; |
73 | 73 |
74 } // namespace autofill | 74 } // namespace autofill |
75 | 75 |
76 #endif // CHROME_BROWSER_UI_VIEWS_AUTOFILL_INFO_BUBBLE_H_ | 76 #endif // CHROME_BROWSER_UI_VIEWS_AUTOFILL_INFO_BUBBLE_H_ |
OLD | NEW |