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

Side by Side Diff: chrome/browser/ui/views/location_bar/location_bar_view.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_LOCATION_BAR_LOCATION_BAR_VIEW_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_LOCATION_BAR_VIEW_H_
6 #define CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_LOCATION_BAR_VIEW_H_ 6 #define CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_LOCATION_BAR_VIEW_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 350 matching lines...) Expand 10 before | Expand all | Expand 10 after
361 ExtensionAction* GetPageAction(size_t index) override; 361 ExtensionAction* GetPageAction(size_t index) override;
362 ExtensionAction* GetVisiblePageAction(size_t index) override; 362 ExtensionAction* GetVisiblePageAction(size_t index) override;
363 void TestPageActionPressed(size_t index) override; 363 void TestPageActionPressed(size_t index) override;
364 bool GetBookmarkStarVisibility() override; 364 bool GetBookmarkStarVisibility() override;
365 365
366 // views::View: 366 // views::View:
367 const char* GetClassName() const override; 367 const char* GetClassName() const override;
368 void OnBoundsChanged(const gfx::Rect& previous_bounds) override; 368 void OnBoundsChanged(const gfx::Rect& previous_bounds) override;
369 void OnFocus() override; 369 void OnFocus() override;
370 void OnPaint(gfx::Canvas* canvas) override; 370 void OnPaint(gfx::Canvas* canvas) override;
371 void PaintChildren(const PaintContext& context) override; 371 void PaintChildren(const ui::PaintContext& context) override;
372 372
373 // views::ButtonListener: 373 // views::ButtonListener:
374 void ButtonPressed(views::Button* sender, const ui::Event& event) override; 374 void ButtonPressed(views::Button* sender, const ui::Event& event) override;
375 375
376 // views::DragController: 376 // views::DragController:
377 void WriteDragDataForView(View* sender, 377 void WriteDragDataForView(View* sender,
378 const gfx::Point& press_pt, 378 const gfx::Point& press_pt,
379 OSExchangeData* data) override; 379 OSExchangeData* data) override;
380 int GetDragOperationsForView(View* sender, const gfx::Point& p) override; 380 int GetDragOperationsForView(View* sender, const gfx::Point& p) override;
381 bool CanStartDragForView(View* sender, 381 bool CanStartDragForView(View* sender,
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
489 int dropdown_animation_offset_; 489 int dropdown_animation_offset_;
490 490
491 // This is a debug state variable that stores if the WebContents was null 491 // This is a debug state variable that stores if the WebContents was null
492 // during the last RefreshPageAction. 492 // during the last RefreshPageAction.
493 bool web_contents_null_at_last_refresh_; 493 bool web_contents_null_at_last_refresh_;
494 494
495 DISALLOW_COPY_AND_ASSIGN(LocationBarView); 495 DISALLOW_COPY_AND_ASSIGN(LocationBarView);
496 }; 496 };
497 497
498 #endif // CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_LOCATION_BAR_VIEW_H_ 498 #endif // CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_LOCATION_BAR_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698