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

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

Issue 1053143002: Make View::Paint use ui::PaintRecorder to access PaintContext's canvas (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: paintrecorder: . Created 5 years, 8 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 243 matching lines...) Expand 10 before | Expand all | Expand 10 after
254 public: 254 public:
255 explicit NotificationArea(AutofillDialogViewDelegate* delegate); 255 explicit NotificationArea(AutofillDialogViewDelegate* delegate);
256 ~NotificationArea() override; 256 ~NotificationArea() override;
257 257
258 // Displays the given notifications. 258 // Displays the given notifications.
259 void SetNotifications(const std::vector<DialogNotification>& notifications); 259 void SetNotifications(const std::vector<DialogNotification>& notifications);
260 260
261 // views::View implementation. 261 // views::View implementation.
262 gfx::Size GetPreferredSize() const override; 262 gfx::Size GetPreferredSize() const override;
263 const char* GetClassName() const override; 263 const char* GetClassName() const override;
264 void PaintChildren(const PaintContext& context) override; 264 void PaintChildren(const ui::PaintContext& context) override;
265 265
266 void set_arrow_centering_anchor( 266 void set_arrow_centering_anchor(
267 const base::WeakPtr<views::View>& arrow_centering_anchor) { 267 const base::WeakPtr<views::View>& arrow_centering_anchor) {
268 arrow_centering_anchor_ = arrow_centering_anchor; 268 arrow_centering_anchor_ = arrow_centering_anchor;
269 } 269 }
270 270
271 private: 271 private:
272 // Utility function for determining whether an arrow should be drawn 272 // Utility function for determining whether an arrow should be drawn
273 // pointing at |arrow_centering_anchor_|. 273 // pointing at |arrow_centering_anchor_|.
274 bool HasArrow(); 274 bool HasArrow();
(...skipping 401 matching lines...) Expand 10 before | Expand all | Expand 10 after
676 676
677 // Used to tell the delegate when focus moves to hide the Autofill popup. 677 // Used to tell the delegate when focus moves to hide the Autofill popup.
678 scoped_ptr<ui::EventHandler> event_handler_; 678 scoped_ptr<ui::EventHandler> event_handler_;
679 679
680 DISALLOW_COPY_AND_ASSIGN(AutofillDialogViews); 680 DISALLOW_COPY_AND_ASSIGN(AutofillDialogViews);
681 }; 681 };
682 682
683 } // namespace autofill 683 } // namespace autofill
684 684
685 #endif // CHROME_BROWSER_UI_VIEWS_AUTOFILL_AUTOFILL_DIALOG_VIEWS_H_ 685 #endif // CHROME_BROWSER_UI_VIEWS_AUTOFILL_AUTOFILL_DIALOG_VIEWS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698