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

Side by Side Diff: chrome/browser/ui/views/location_bar/page_action_image_view.h

Issue 1214243003: [Extensions UI] Clean up extension icon generation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: s/skia/ImageSkia Created 5 years, 5 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_PAGE_ACTION_IMAGE_VIEW_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_PAGE_ACTION_IMAGE_VIEW_H_
6 #define CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_PAGE_ACTION_IMAGE_VIEW_H_ 6 #define CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_PAGE_ACTION_IMAGE_VIEW_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 bool OnKeyPressed(const ui::KeyEvent& event) override; 55 bool OnKeyPressed(const ui::KeyEvent& event) override;
56 void OnGestureEvent(ui::GestureEvent* event) override; 56 void OnGestureEvent(ui::GestureEvent* event) override;
57 57
58 // Called to notify the PageAction that it should determine whether to be 58 // Called to notify the PageAction that it should determine whether to be
59 // visible or hidden. |contents| is the WebContents that is active. 59 // visible or hidden. |contents| is the WebContents that is active.
60 void UpdateVisibility(content::WebContents* contents); 60 void UpdateVisibility(content::WebContents* contents);
61 61
62 private: 62 private:
63 static const char kViewClassName[]; 63 static const char kViewClassName[];
64 64
65 // Overridden from View.
66 void PaintChildren(const ui::PaintContext& context) override;
67
68 // ToolbarActionViewDelegateViews: 65 // ToolbarActionViewDelegateViews:
69 void UpdateState() override; 66 void UpdateState() override;
70 views::View* GetAsView() override; 67 views::View* GetAsView() override;
71 bool IsMenuRunning() const override; 68 bool IsMenuRunning() const override;
72 views::FocusManager* GetFocusManagerForAccelerator() override; 69 views::FocusManager* GetFocusManagerForAccelerator() override;
73 views::View* GetReferenceViewForPopup() override; 70 views::View* GetReferenceViewForPopup() override;
74 content::WebContents* GetCurrentWebContents() const override; 71 content::WebContents* GetCurrentWebContents() const override;
75 72
76 // views::ContextMenuController: 73 // views::ContextMenuController:
77 void ShowContextMenuForView(views::View* source, 74 void ShowContextMenuForView(views::View* source,
(...skipping 13 matching lines...) Expand all
91 // briefly shown even if it hasn't been enabled by its extension. 88 // briefly shown even if it hasn't been enabled by its extension.
92 bool preview_enabled_; 89 bool preview_enabled_;
93 90
94 // Responsible for running the menu. 91 // Responsible for running the menu.
95 scoped_ptr<views::MenuRunner> menu_runner_; 92 scoped_ptr<views::MenuRunner> menu_runner_;
96 93
97 DISALLOW_IMPLICIT_CONSTRUCTORS(PageActionImageView); 94 DISALLOW_IMPLICIT_CONSTRUCTORS(PageActionImageView);
98 }; 95 };
99 96
100 #endif // CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_PAGE_ACTION_IMAGE_VIEW_H_ 97 #endif // CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_PAGE_ACTION_IMAGE_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698