OLD | NEW |
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_INFOBARS_INFOBAR_VIEW_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_INFOBARS_INFOBAR_VIEW_H_ |
6 #define CHROME_BROWSER_UI_VIEWS_INFOBARS_INFOBAR_VIEW_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_INFOBARS_INFOBAR_VIEW_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 "chrome/browser/infobars/infobar.h" | 10 #include "chrome/browser/infobars/infobar.h" |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
69 // views::View: | 69 // views::View: |
70 virtual void Layout() OVERRIDE; | 70 virtual void Layout() OVERRIDE; |
71 virtual void ViewHierarchyChanged(bool is_add, | 71 virtual void ViewHierarchyChanged(bool is_add, |
72 View* parent, | 72 View* parent, |
73 View* child) OVERRIDE; | 73 View* child) OVERRIDE; |
74 | 74 |
75 // views::ButtonListener: | 75 // views::ButtonListener: |
76 // NOTE: This must not be called if we're unowned. (Subclasses should ignore | 76 // NOTE: This must not be called if we're unowned. (Subclasses should ignore |
77 // calls to ButtonPressed() in this case.) | 77 // calls to ButtonPressed() in this case.) |
78 virtual void ButtonPressed(views::Button* sender, | 78 virtual void ButtonPressed(views::Button* sender, |
79 const views::Event& event) OVERRIDE; | 79 const ui::Event& event) OVERRIDE; |
80 | 80 |
81 // Returns the minimum width the content (that is, everything between the icon | 81 // Returns the minimum width the content (that is, everything between the icon |
82 // and the close button) can be shrunk to. This is used to prevent the close | 82 // and the close button) can be shrunk to. This is used to prevent the close |
83 // button from overlapping views that cannot be shrunk any further. | 83 // button from overlapping views that cannot be shrunk any further. |
84 virtual int ContentMinimumWidth() const; | 84 virtual int ContentMinimumWidth() const; |
85 | 85 |
86 // These return x coordinates delimiting the usable area for subclasses to lay | 86 // These return x coordinates delimiting the usable area for subclasses to lay |
87 // out their controls. | 87 // out their controls. |
88 int StartX() const; | 88 int StartX() const; |
89 int EndX() const; | 89 int EndX() const; |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
132 SkPath fill_path_; | 132 SkPath fill_path_; |
133 SkPath stroke_path_; | 133 SkPath stroke_path_; |
134 | 134 |
135 // Used to run the menu. | 135 // Used to run the menu. |
136 scoped_ptr<views::MenuRunner> menu_runner_; | 136 scoped_ptr<views::MenuRunner> menu_runner_; |
137 | 137 |
138 DISALLOW_COPY_AND_ASSIGN(InfoBarView); | 138 DISALLOW_COPY_AND_ASSIGN(InfoBarView); |
139 }; | 139 }; |
140 | 140 |
141 #endif // CHROME_BROWSER_UI_VIEWS_INFOBARS_INFOBAR_VIEW_H_ | 141 #endif // CHROME_BROWSER_UI_VIEWS_INFOBARS_INFOBAR_VIEW_H_ |
OLD | NEW |