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

Side by Side Diff: chrome/browser/ui/views/autofill/autofill_dialog_views.h

Issue 628773002: replace OVERRIDE and FINAL with override and final in chrome/browser/ui/[t-v]* (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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
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 CHROME_BROWSER_UI_VIEWS_AUTOFILL_AUTOFILL_DIALOG_VIEWS_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_AUTOFILL_AUTOFILL_DIALOG_VIEWS_H_
6 #define CHROME_BROWSER_UI_VIEWS_AUTOFILL_AUTOFILL_DIALOG_VIEWS_H_ 6 #define CHROME_BROWSER_UI_VIEWS_AUTOFILL_AUTOFILL_DIALOG_VIEWS_H_
7 7
8 #include <map> 8 #include <map>
9 #include <set> 9 #include <set>
10 10
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 public views::TextfieldController, 67 public views::TextfieldController,
68 public views::FocusChangeListener, 68 public views::FocusChangeListener,
69 public views::ComboboxListener, 69 public views::ComboboxListener,
70 public views::StyledLabelListener, 70 public views::StyledLabelListener,
71 public views::MenuButtonListener { 71 public views::MenuButtonListener {
72 public: 72 public:
73 explicit AutofillDialogViews(AutofillDialogViewDelegate* delegate); 73 explicit AutofillDialogViews(AutofillDialogViewDelegate* delegate);
74 virtual ~AutofillDialogViews(); 74 virtual ~AutofillDialogViews();
75 75
76 // AutofillDialogView implementation: 76 // AutofillDialogView implementation:
77 virtual void Show() OVERRIDE; 77 virtual void Show() override;
78 virtual void Hide() OVERRIDE; 78 virtual void Hide() override;
79 virtual void UpdatesStarted() OVERRIDE; 79 virtual void UpdatesStarted() override;
80 virtual void UpdatesFinished() OVERRIDE; 80 virtual void UpdatesFinished() override;
81 virtual void UpdateAccountChooser() OVERRIDE; 81 virtual void UpdateAccountChooser() override;
82 virtual void UpdateButtonStrip() OVERRIDE; 82 virtual void UpdateButtonStrip() override;
83 virtual void UpdateOverlay() OVERRIDE; 83 virtual void UpdateOverlay() override;
84 virtual void UpdateDetailArea() OVERRIDE; 84 virtual void UpdateDetailArea() override;
85 virtual void UpdateForErrors() OVERRIDE; 85 virtual void UpdateForErrors() override;
86 virtual void UpdateNotificationArea() OVERRIDE; 86 virtual void UpdateNotificationArea() override;
87 virtual void UpdateSection(DialogSection section) OVERRIDE; 87 virtual void UpdateSection(DialogSection section) override;
88 virtual void UpdateErrorBubble() OVERRIDE; 88 virtual void UpdateErrorBubble() override;
89 virtual void FillSection(DialogSection section, 89 virtual void FillSection(DialogSection section,
90 ServerFieldType originating_type) OVERRIDE; 90 ServerFieldType originating_type) override;
91 virtual void GetUserInput(DialogSection section, 91 virtual void GetUserInput(DialogSection section,
92 FieldValueMap* output) OVERRIDE; 92 FieldValueMap* output) override;
93 virtual base::string16 GetCvc() OVERRIDE; 93 virtual base::string16 GetCvc() override;
94 virtual bool SaveDetailsLocally() OVERRIDE; 94 virtual bool SaveDetailsLocally() override;
95 virtual const content::NavigationController* ShowSignIn() OVERRIDE; 95 virtual const content::NavigationController* ShowSignIn() override;
96 virtual void HideSignIn() OVERRIDE; 96 virtual void HideSignIn() override;
97 virtual void ModelChanged() OVERRIDE; 97 virtual void ModelChanged() override;
98 virtual void OnSignInResize(const gfx::Size& pref_size) OVERRIDE; 98 virtual void OnSignInResize(const gfx::Size& pref_size) override;
99 virtual void ValidateSection(DialogSection section) OVERRIDE; 99 virtual void ValidateSection(DialogSection section) override;
100 100
101 // views::View implementation. 101 // views::View implementation.
102 virtual gfx::Size GetPreferredSize() const OVERRIDE; 102 virtual gfx::Size GetPreferredSize() const override;
103 virtual gfx::Size GetMinimumSize() const OVERRIDE; 103 virtual gfx::Size GetMinimumSize() const override;
104 virtual void Layout() OVERRIDE; 104 virtual void Layout() override;
105 virtual void OnNativeThemeChanged(const ui::NativeTheme* theme) OVERRIDE; 105 virtual void OnNativeThemeChanged(const ui::NativeTheme* theme) override;
106 106
107 // views::DialogDelegate implementation: 107 // views::DialogDelegate implementation:
108 virtual ui::ModalType GetModalType() const OVERRIDE; 108 virtual ui::ModalType GetModalType() const override;
109 virtual base::string16 GetWindowTitle() const OVERRIDE; 109 virtual base::string16 GetWindowTitle() const override;
110 virtual void WindowClosing() OVERRIDE; 110 virtual void WindowClosing() override;
111 virtual void DeleteDelegate() OVERRIDE; 111 virtual void DeleteDelegate() override;
112 virtual views::View* CreateOverlayView() OVERRIDE; 112 virtual views::View* CreateOverlayView() override;
113 virtual int GetDialogButtons() const OVERRIDE; 113 virtual int GetDialogButtons() const override;
114 virtual int GetDefaultDialogButton() const OVERRIDE; 114 virtual int GetDefaultDialogButton() const override;
115 virtual base::string16 GetDialogButtonLabel(ui::DialogButton button) const 115 virtual base::string16 GetDialogButtonLabel(ui::DialogButton button) const
116 OVERRIDE; 116 override;
117 virtual bool ShouldDefaultButtonBeBlue() const OVERRIDE; 117 virtual bool ShouldDefaultButtonBeBlue() const override;
118 virtual bool IsDialogButtonEnabled(ui::DialogButton button) const OVERRIDE; 118 virtual bool IsDialogButtonEnabled(ui::DialogButton button) const override;
119 virtual views::View* GetInitiallyFocusedView() OVERRIDE; 119 virtual views::View* GetInitiallyFocusedView() override;
120 virtual views::View* CreateExtraView() OVERRIDE; 120 virtual views::View* CreateExtraView() override;
121 virtual views::View* CreateTitlebarExtraView() OVERRIDE; 121 virtual views::View* CreateTitlebarExtraView() override;
122 virtual views::View* CreateFootnoteView() OVERRIDE; 122 virtual views::View* CreateFootnoteView() override;
123 virtual bool Cancel() OVERRIDE; 123 virtual bool Cancel() override;
124 virtual bool Accept() OVERRIDE; 124 virtual bool Accept() override;
125 125
126 // views::WidgetObserver implementation: 126 // views::WidgetObserver implementation:
127 virtual void OnWidgetClosing(views::Widget* widget) OVERRIDE; 127 virtual void OnWidgetClosing(views::Widget* widget) override;
128 virtual void OnWidgetDestroying(views::Widget* widget) OVERRIDE; 128 virtual void OnWidgetDestroying(views::Widget* widget) override;
129 virtual void OnWidgetBoundsChanged(views::Widget* widget, 129 virtual void OnWidgetBoundsChanged(views::Widget* widget,
130 const gfx::Rect& new_bounds) OVERRIDE; 130 const gfx::Rect& new_bounds) override;
131 131
132 // views::TextfieldController implementation: 132 // views::TextfieldController implementation:
133 virtual void ContentsChanged(views::Textfield* sender, 133 virtual void ContentsChanged(views::Textfield* sender,
134 const base::string16& new_contents) OVERRIDE; 134 const base::string16& new_contents) override;
135 virtual bool HandleKeyEvent(views::Textfield* sender, 135 virtual bool HandleKeyEvent(views::Textfield* sender,
136 const ui::KeyEvent& key_event) OVERRIDE; 136 const ui::KeyEvent& key_event) override;
137 virtual bool HandleMouseEvent(views::Textfield* sender, 137 virtual bool HandleMouseEvent(views::Textfield* sender,
138 const ui::MouseEvent& key_event) OVERRIDE; 138 const ui::MouseEvent& key_event) override;
139 139
140 // views::FocusChangeListener implementation. 140 // views::FocusChangeListener implementation.
141 virtual void OnWillChangeFocus(views::View* focused_before, 141 virtual void OnWillChangeFocus(views::View* focused_before,
142 views::View* focused_now) OVERRIDE; 142 views::View* focused_now) override;
143 virtual void OnDidChangeFocus(views::View* focused_before, 143 virtual void OnDidChangeFocus(views::View* focused_before,
144 views::View* focused_now) OVERRIDE; 144 views::View* focused_now) override;
145 145
146 // views::ComboboxListener implementation: 146 // views::ComboboxListener implementation:
147 virtual void OnPerformAction(views::Combobox* combobox) OVERRIDE; 147 virtual void OnPerformAction(views::Combobox* combobox) override;
148 148
149 // views::StyledLabelListener implementation: 149 // views::StyledLabelListener implementation:
150 virtual void StyledLabelLinkClicked(const gfx::Range& range, int event_flags) 150 virtual void StyledLabelLinkClicked(const gfx::Range& range, int event_flags)
151 OVERRIDE; 151 override;
152 152
153 // views::MenuButtonListener implementation. 153 // views::MenuButtonListener implementation.
154 virtual void OnMenuButtonClicked(views::View* source, 154 virtual void OnMenuButtonClicked(views::View* source,
155 const gfx::Point& point) OVERRIDE; 155 const gfx::Point& point) override;
156 156
157 protected: 157 protected:
158 // Exposed for testing. 158 // Exposed for testing.
159 views::View* GetLoadingShieldForTesting(); 159 views::View* GetLoadingShieldForTesting();
160 views::WebView* GetSignInWebViewForTesting(); 160 views::WebView* GetSignInWebViewForTesting();
161 views::View* GetNotificationAreaForTesting(); 161 views::View* GetNotificationAreaForTesting();
162 views::View* GetScrollableAreaForTesting(); 162 views::View* GetScrollableAreaForTesting();
163 163
164 private: 164 private:
165 friend class AutofillDialogViewTesterViews; 165 friend class AutofillDialogViewTesterViews;
(...skipping 13 matching lines...) Expand all
179 public views::MenuButtonListener, 179 public views::MenuButtonListener,
180 public base::SupportsWeakPtr<AccountChooser> { 180 public base::SupportsWeakPtr<AccountChooser> {
181 public: 181 public:
182 explicit AccountChooser(AutofillDialogViewDelegate* delegate); 182 explicit AccountChooser(AutofillDialogViewDelegate* delegate);
183 virtual ~AccountChooser(); 183 virtual ~AccountChooser();
184 184
185 // Updates the view based on the state that |delegate_| reports. 185 // Updates the view based on the state that |delegate_| reports.
186 void Update(); 186 void Update();
187 187
188 // views::LinkListener implementation. 188 // views::LinkListener implementation.
189 virtual void LinkClicked(views::Link* source, int event_flags) OVERRIDE; 189 virtual void LinkClicked(views::Link* source, int event_flags) override;
190 190
191 // views::MenuButtonListener implementation. 191 // views::MenuButtonListener implementation.
192 virtual void OnMenuButtonClicked(views::View* source, 192 virtual void OnMenuButtonClicked(views::View* source,
193 const gfx::Point& point) OVERRIDE; 193 const gfx::Point& point) override;
194 194
195 private: 195 private:
196 // The icon for the currently in-use account. 196 // The icon for the currently in-use account.
197 views::ImageView* image_; 197 views::ImageView* image_;
198 198
199 // The button for showing a menu to change the currently in-use account. 199 // The button for showing a menu to change the currently in-use account.
200 views::MenuButton* menu_button_; 200 views::MenuButton* menu_button_;
201 201
202 // The sign in link. 202 // The sign in link.
203 views::Link* link_; 203 views::Link* link_;
(...skipping 16 matching lines...) Expand all
220 220
221 // Returns a height which should be used when the contents view has width 221 // Returns a height which should be used when the contents view has width
222 // |w|. Note that the value returned should be used as the height of the 222 // |w|. Note that the value returned should be used as the height of the
223 // dialog's contents. 223 // dialog's contents.
224 int GetHeightForContentsForWidth(int width); 224 int GetHeightForContentsForWidth(int width);
225 225
226 // Sets the state to whatever |delegate_| says it should be. 226 // Sets the state to whatever |delegate_| says it should be.
227 void UpdateState(); 227 void UpdateState();
228 228
229 // views::View implementation: 229 // views::View implementation:
230 virtual gfx::Insets GetInsets() const OVERRIDE; 230 virtual gfx::Insets GetInsets() const override;
231 virtual void Layout() OVERRIDE; 231 virtual void Layout() override;
232 virtual const char* GetClassName() const OVERRIDE; 232 virtual const char* GetClassName() const override;
233 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE; 233 virtual void OnPaint(gfx::Canvas* canvas) override;
234 virtual void OnNativeThemeChanged(const ui::NativeTheme* theme) OVERRIDE; 234 virtual void OnNativeThemeChanged(const ui::NativeTheme* theme) override;
235 235
236 private: 236 private:
237 // Gets the border of the non-client frame view as a BubbleBorder. 237 // Gets the border of the non-client frame view as a BubbleBorder.
238 views::BubbleBorder* GetBubbleBorder(); 238 views::BubbleBorder* GetBubbleBorder();
239 239
240 // Gets the bounds of this view without the frame view's bubble border. 240 // Gets the bounds of this view without the frame view's bubble border.
241 gfx::Rect ContentBoundsSansBubbleBorder(); 241 gfx::Rect ContentBoundsSansBubbleBorder();
242 242
243 // The delegate that provides |state| when UpdateState is called. 243 // The delegate that provides |state| when UpdateState is called.
244 AutofillDialogViewDelegate* delegate_; 244 AutofillDialogViewDelegate* delegate_;
245 245
246 // Child View. Front and center. 246 // Child View. Front and center.
247 views::ImageView* image_view_; 247 views::ImageView* image_view_;
248 // Child View. When visible, below |image_view_|. 248 // Child View. When visible, below |image_view_|.
249 views::Label* message_view_; 249 views::Label* message_view_;
250 250
251 DISALLOW_COPY_AND_ASSIGN(OverlayView); 251 DISALLOW_COPY_AND_ASSIGN(OverlayView);
252 }; 252 };
253 253
254 // An area for notifications. Some notifications point at the account chooser. 254 // An area for notifications. Some notifications point at the account chooser.
255 class NotificationArea : public views::View { 255 class NotificationArea : public views::View {
256 public: 256 public:
257 explicit NotificationArea(AutofillDialogViewDelegate* delegate); 257 explicit NotificationArea(AutofillDialogViewDelegate* delegate);
258 virtual ~NotificationArea(); 258 virtual ~NotificationArea();
259 259
260 // Displays the given notifications. 260 // Displays the given notifications.
261 void SetNotifications(const std::vector<DialogNotification>& notifications); 261 void SetNotifications(const std::vector<DialogNotification>& notifications);
262 262
263 // views::View implementation. 263 // views::View implementation.
264 virtual gfx::Size GetPreferredSize() const OVERRIDE; 264 virtual gfx::Size GetPreferredSize() const override;
265 virtual const char* GetClassName() const OVERRIDE; 265 virtual const char* GetClassName() const override;
266 virtual void PaintChildren(gfx::Canvas* canvas, 266 virtual void PaintChildren(gfx::Canvas* canvas,
267 const views::CullSet& cull_set) OVERRIDE; 267 const views::CullSet& cull_set) override;
268 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE; 268 virtual void OnPaint(gfx::Canvas* canvas) override;
269 269
270 void set_arrow_centering_anchor( 270 void set_arrow_centering_anchor(
271 const base::WeakPtr<views::View>& arrow_centering_anchor) { 271 const base::WeakPtr<views::View>& arrow_centering_anchor) {
272 arrow_centering_anchor_ = arrow_centering_anchor; 272 arrow_centering_anchor_ = arrow_centering_anchor;
273 } 273 }
274 274
275 private: 275 private:
276 // Utility function for determining whether an arrow should be drawn 276 // Utility function for determining whether an arrow should be drawn
277 // pointing at |arrow_centering_anchor_|. 277 // pointing at |arrow_centering_anchor_|.
278 bool HasArrow(); 278 bool HasArrow();
(...skipping 24 matching lines...) Expand all
303 virtual ~SectionContainer(); 303 virtual ~SectionContainer();
304 304
305 // Sets the visual appearance of the section to active (considered active 305 // Sets the visual appearance of the section to active (considered active
306 // when showing the menu or hovered by the mouse cursor). 306 // when showing the menu or hovered by the mouse cursor).
307 void SetActive(bool active); 307 void SetActive(bool active);
308 308
309 // Sets whether mouse events should be forwarded to |proxy_button_|. 309 // Sets whether mouse events should be forwarded to |proxy_button_|.
310 void SetForwardMouseEvents(bool forward); 310 void SetForwardMouseEvents(bool forward);
311 311
312 // views::View implementation. 312 // views::View implementation.
313 virtual const char* GetClassName() const OVERRIDE; 313 virtual const char* GetClassName() const override;
314 virtual void OnMouseMoved(const ui::MouseEvent& event) OVERRIDE; 314 virtual void OnMouseMoved(const ui::MouseEvent& event) override;
315 virtual void OnMouseEntered(const ui::MouseEvent& event) OVERRIDE; 315 virtual void OnMouseEntered(const ui::MouseEvent& event) override;
316 virtual void OnMouseExited(const ui::MouseEvent& event) OVERRIDE; 316 virtual void OnMouseExited(const ui::MouseEvent& event) override;
317 virtual bool OnMousePressed(const ui::MouseEvent& event) OVERRIDE; 317 virtual bool OnMousePressed(const ui::MouseEvent& event) override;
318 virtual void OnMouseReleased(const ui::MouseEvent& event) OVERRIDE; 318 virtual void OnMouseReleased(const ui::MouseEvent& event) override;
319 virtual void OnGestureEvent(ui::GestureEvent* event) OVERRIDE; 319 virtual void OnGestureEvent(ui::GestureEvent* event) override;
320 320
321 private: 321 private:
322 // views::ViewTargeterDelegate: 322 // views::ViewTargeterDelegate:
323 virtual views::View* TargetForRect(views::View* root, 323 virtual views::View* TargetForRect(views::View* root,
324 const gfx::Rect& rect) OVERRIDE; 324 const gfx::Rect& rect) override;
325 325
326 // Converts |event| to one suitable for |proxy_button_|. 326 // Converts |event| to one suitable for |proxy_button_|.
327 static ui::MouseEvent ProxyEvent(const ui::MouseEvent& event); 327 static ui::MouseEvent ProxyEvent(const ui::MouseEvent& event);
328 328
329 // Returns true if the given event should be forwarded to |proxy_button_|. 329 // Returns true if the given event should be forwarded to |proxy_button_|.
330 bool ShouldForwardEvent(const ui::LocatedEvent& event); 330 bool ShouldForwardEvent(const ui::LocatedEvent& event);
331 331
332 // Mouse events on |this| are sent to this button. 332 // Mouse events on |this| are sent to this button.
333 views::Button* proxy_button_; // Weak reference. 333 views::Button* proxy_button_; // Weak reference.
334 334
335 // When true, all mouse events will be forwarded to |proxy_button_|. 335 // When true, all mouse events will be forwarded to |proxy_button_|.
336 bool forward_mouse_events_; 336 bool forward_mouse_events_;
337 337
338 DISALLOW_COPY_AND_ASSIGN(SectionContainer); 338 DISALLOW_COPY_AND_ASSIGN(SectionContainer);
339 }; 339 };
340 340
341 // A button to show address or billing suggestions. 341 // A button to show address or billing suggestions.
342 class SuggestedButton : public views::MenuButton { 342 class SuggestedButton : public views::MenuButton {
343 public: 343 public:
344 explicit SuggestedButton(views::MenuButtonListener* listener); 344 explicit SuggestedButton(views::MenuButtonListener* listener);
345 virtual ~SuggestedButton(); 345 virtual ~SuggestedButton();
346 346
347 // views::MenuButton implementation. 347 // views::MenuButton implementation.
348 virtual gfx::Size GetPreferredSize() const OVERRIDE; 348 virtual gfx::Size GetPreferredSize() const override;
349 virtual const char* GetClassName() const OVERRIDE; 349 virtual const char* GetClassName() const override;
350 virtual void PaintChildren(gfx::Canvas* canvas, 350 virtual void PaintChildren(gfx::Canvas* canvas,
351 const views::CullSet& cull_set) OVERRIDE; 351 const views::CullSet& cull_set) override;
352 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE; 352 virtual void OnPaint(gfx::Canvas* canvas) override;
353 353
354 private: 354 private:
355 // Returns the corred resource ID (i.e. IDR_*) for the current |state()|. 355 // Returns the corred resource ID (i.e. IDR_*) for the current |state()|.
356 int ResourceIDForState() const; 356 int ResourceIDForState() const;
357 357
358 DISALLOW_COPY_AND_ASSIGN(SuggestedButton); 358 DISALLOW_COPY_AND_ASSIGN(SuggestedButton);
359 }; 359 };
360 360
361 // A view that runs a callback whenever its bounds change, and which can 361 // A view that runs a callback whenever its bounds change, and which can
362 // optionally suppress layout. 362 // optionally suppress layout.
363 class DetailsContainerView : public views::View { 363 class DetailsContainerView : public views::View {
364 public: 364 public:
365 explicit DetailsContainerView(const base::Closure& callback); 365 explicit DetailsContainerView(const base::Closure& callback);
366 virtual ~DetailsContainerView(); 366 virtual ~DetailsContainerView();
367 367
368 void set_ignore_layouts(bool ignore_layouts) { 368 void set_ignore_layouts(bool ignore_layouts) {
369 ignore_layouts_ = ignore_layouts; 369 ignore_layouts_ = ignore_layouts;
370 } 370 }
371 371
372 // views::View implementation. 372 // views::View implementation.
373 virtual void OnBoundsChanged(const gfx::Rect& previous_bounds) OVERRIDE; 373 virtual void OnBoundsChanged(const gfx::Rect& previous_bounds) override;
374 virtual void Layout() OVERRIDE; 374 virtual void Layout() override;
375 375
376 private: 376 private:
377 base::Closure bounds_changed_callback_; 377 base::Closure bounds_changed_callback_;
378 378
379 // The view ignores Layout() calls when this is true. 379 // The view ignores Layout() calls when this is true.
380 bool ignore_layouts_; 380 bool ignore_layouts_;
381 381
382 DISALLOW_COPY_AND_ASSIGN(DetailsContainerView); 382 DISALLOW_COPY_AND_ASSIGN(DetailsContainerView);
383 }; 383 };
384 384
385 // A view that contains a suggestion (such as a known address). 385 // A view that contains a suggestion (such as a known address).
386 class SuggestionView : public views::View { 386 class SuggestionView : public views::View {
387 public: 387 public:
388 explicit SuggestionView(AutofillDialogViews* autofill_dialog); 388 explicit SuggestionView(AutofillDialogViews* autofill_dialog);
389 virtual ~SuggestionView(); 389 virtual ~SuggestionView();
390 390
391 void SetState(const SuggestionState& state); 391 void SetState(const SuggestionState& state);
392 392
393 // views::View implementation. 393 // views::View implementation.
394 virtual gfx::Size GetPreferredSize() const OVERRIDE; 394 virtual gfx::Size GetPreferredSize() const override;
395 virtual int GetHeightForWidth(int width) const OVERRIDE; 395 virtual int GetHeightForWidth(int width) const override;
396 virtual void OnBoundsChanged(const gfx::Rect& previous_bounds) OVERRIDE; 396 virtual void OnBoundsChanged(const gfx::Rect& previous_bounds) override;
397 397
398 ExpandingTextfield* textfield() { return textfield_; } 398 ExpandingTextfield* textfield() { return textfield_; }
399 399
400 private: 400 private:
401 // Returns whether there's room to display |state_.vertically_compact_text| 401 // Returns whether there's room to display |state_.vertically_compact_text|
402 // without resorting to an ellipsis for a pixel width of |available_width|. 402 // without resorting to an ellipsis for a pixel width of |available_width|.
403 // Fills in |resulting_height| with the amount of space required to display 403 // Fills in |resulting_height| with the amount of space required to display
404 // |vertically_compact_text| or |horizontally_compact_text| as the case may 404 // |vertically_compact_text| or |horizontally_compact_text| as the case may
405 // be. 405 // be.
406 bool CanUseVerticallyCompactText(int available_width, 406 bool CanUseVerticallyCompactText(int available_width,
(...skipping 275 matching lines...) Expand 10 before | Expand all | Expand 10 after
682 682
683 // Used to tell the delegate when focus moves to hide the Autofill popup. 683 // Used to tell the delegate when focus moves to hide the Autofill popup.
684 scoped_ptr<ui::EventHandler> event_handler_; 684 scoped_ptr<ui::EventHandler> event_handler_;
685 685
686 DISALLOW_COPY_AND_ASSIGN(AutofillDialogViews); 686 DISALLOW_COPY_AND_ASSIGN(AutofillDialogViews);
687 }; 687 };
688 688
689 } // namespace autofill 689 } // namespace autofill
690 690
691 #endif // CHROME_BROWSER_UI_VIEWS_AUTOFILL_AUTOFILL_DIALOG_VIEWS_H_ 691 #endif // CHROME_BROWSER_UI_VIEWS_AUTOFILL_AUTOFILL_DIALOG_VIEWS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698