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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/views/location_bar/action_box_button_view.h
===================================================================
--- chrome/browser/ui/views/location_bar/action_box_button_view.h (revision 0)
+++ chrome/browser/ui/views/location_bar/action_box_button_view.h (revision 0)
@@ -0,0 +1,38 @@
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
Aaron Boodman 2012/05/17 20:42:05 2012
yefimt 2012/05/17 22:42:52 Done.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_ACTION_BOX_BUTTON_VIEW_H_
+#define CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_ACTION_BOX_BUTTON_VIEW_H_
+#pragma once
+
+#include "ui/views/controls/button/menu_button.h"
+#include "ui/views/controls/button/menu_button_listener.h"
+
+class CommandUpdater;
+
+namespace views {
+class KeyEvent;
+class MouseEvent;
+}
+
+class ActionBoxButtonView : public views::MenuButton,
Aaron Boodman 2012/05/17 20:42:05 In the case of the wrench menu, the containing vie
+ public views::MenuButtonListener {
+ public:
+ explicit ActionBoxButtonView(CommandUpdater* command_updater);
+ virtual ~ActionBoxButtonView();
+
+ private:
+ void SetImages();
+
+ virtual void GetAccessibleState(ui::AccessibleViewState* state) OVERRIDE;
Aaron Boodman 2012/05/17 20:42:05 When implementing interfaces, it is customary to f
yefimt 2012/05/17 22:42:52 Done.
+
+ virtual void OnMenuButtonClicked(View* source, const gfx::Point& point);
+
+ // The CommandUpdater for the Browser object that owns the location bar.
+ CommandUpdater* command_updater_;
+
+ DISALLOW_IMPLICIT_CONSTRUCTORS(ActionBoxButtonView);
+};
+
+#endif // CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_ACTION_BOX_BUTTON_VIEW_H_

Powered by Google App Engine
This is Rietveld 408576698