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

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

Issue 10406016: Implement Action Box button (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: Created 8 years, 7 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
(Empty)
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
3 // found in the LICENSE file.
4
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_
7 #pragma once
8
9 #include "ui/views/controls/button/menu_button.h"
10 #include "ui/views/controls/button/menu_button_listener.h"
11
12 // ActionBoxButtonView displays a plus button with assosiated menu.
13 class ActionBoxButtonView : public views::MenuButton,
14 public views::MenuButtonListener {
15 public:
16 ActionBoxButtonView();
17 virtual ~ActionBoxButtonView();
18
19 private:
20 void SetImages();
21
22 // CustomButton
23 virtual void GetAccessibleState(ui::AccessibleViewState* state) OVERRIDE;
24
25 // MenuButtonListener
26 virtual void OnMenuButtonClicked(View* source,
27 const gfx::Point& point) OVERRIDE;
28
29 DISALLOW_COPY_AND_ASSIGN(ActionBoxButtonView);
30 };
31
32 #endif // CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_ACTION_BOX_BUTTON_VIEW_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/view_ids.h ('k') | chrome/browser/ui/views/location_bar/action_box_button_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698