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

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

Issue 10887029: Only show chrome2mobile in action box if it is enabled (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 3 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 | Annotate | Revision Log
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_ACTION_BOX_BUTTON_VIEW_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_ACTION_BOX_BUTTON_VIEW_H_
6 #define CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_ACTION_BOX_BUTTON_VIEW_H_ 6 #define CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_ACTION_BOX_BUTTON_VIEW_H_
7 7
8 #include "ui/views/controls/button/menu_button.h" 8 #include "ui/views/controls/button/menu_button.h"
9 #include "ui/views/controls/button/menu_button_listener.h" 9 #include "ui/views/controls/button/menu_button_listener.h"
10 10
11 class Browser; 11 class Browser;
12 class Profile; 12 class Profile;
msw 2012/08/30 01:47:01 Remove unnecessary forward decl.
Cait (Slow) 2012/08/30 21:46:03 Done.
13 13
14 // ActionBoxButtonView displays a plus button with associated menu. 14 // ActionBoxButtonView displays a plus button with associated menu.
15 class ActionBoxButtonView : public views::MenuButton, 15 class ActionBoxButtonView : public views::MenuButton,
16 public views::MenuButtonListener { 16 public views::MenuButtonListener {
17 public: 17 public:
18 explicit ActionBoxButtonView(Browser* browser, Profile* profile); 18 explicit ActionBoxButtonView(Browser* browser);
19 virtual ~ActionBoxButtonView(); 19 virtual ~ActionBoxButtonView();
20 20
21 SkColor GetBackgroundColor(); 21 SkColor GetBackgroundColor();
22 SkColor GetBorderColor(); 22 SkColor GetBorderColor();
23 23
24 static bool IsActionBoxEnabled(); 24 static bool IsActionBoxEnabled();
25 25
26 private: 26 private:
27 // Overridden from views::CustomButton: 27 // Overridden from views::CustomButton:
28 virtual void GetAccessibleState(ui::AccessibleViewState* state) OVERRIDE; 28 virtual void GetAccessibleState(ui::AccessibleViewState* state) OVERRIDE;
29 29
30 // Overridden from views::MenuButtonListener: 30 // Overridden from views::MenuButtonListener:
31 virtual void OnMenuButtonClicked(View* source, 31 virtual void OnMenuButtonClicked(View* source,
32 const gfx::Point& point) OVERRIDE; 32 const gfx::Point& point) OVERRIDE;
33 33
34 Browser* browser_; 34 Browser* browser_;
35 Profile* profile_;
36 35
37 DISALLOW_COPY_AND_ASSIGN(ActionBoxButtonView); 36 DISALLOW_COPY_AND_ASSIGN(ActionBoxButtonView);
38 }; 37 };
39 38
40 #endif // CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_ACTION_BOX_BUTTON_VIEW_H_ 39 #endif // CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_ACTION_BOX_BUTTON_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698