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

Unified Diff: mandoline/ui/desktop_ui/toolbar_view.h

Issue 1326443006: mandoline: Add back/forward support and UI. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: nits and such. Created 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « mandoline/ui/desktop_ui/browser_window.cc ('k') | mandoline/ui/desktop_ui/toolbar_view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mandoline/ui/desktop_ui/toolbar_view.h
diff --git a/mandoline/ui/desktop_ui/toolbar_view.h b/mandoline/ui/desktop_ui/toolbar_view.h
new file mode 100644
index 0000000000000000000000000000000000000000..d67ae7321062c1e83ecfa156b64451af9d0bdab8
--- /dev/null
+++ b/mandoline/ui/desktop_ui/toolbar_view.h
@@ -0,0 +1,45 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef MANDOLINE_UI_DESKTOP_UI_TOOLBAR_VIEW_H_
+#define MANDOLINE_UI_DESKTOP_UI_TOOLBAR_VIEW_H_
+
+#include "ui/views/view.h"
+#include "ui/views/controls/button/label_button.h"
+
+namespace views {
+class BoxLayout;
+class LabelButton;
+}
+
+namespace mandoline {
+class BrowserWindow;
+
+class ToolbarView : public views::View,
+ public views::ButtonListener {
+ public:
+ ToolbarView(BrowserWindow* browser_window);
+ ~ToolbarView() override;
+
+ // Sets the state of the visual elements.
+ void SetOmniboxText(const base::string16& text);
+ void SetBackForwardEnabled(bool back_enabled, bool forward_enabled);
+
+ // Overridden from views::ButtonListener:
+ void ButtonPressed(views::Button* sender, const ui::Event& event) override;
+
+ private:
+ BrowserWindow* browser_window_;
+
+ views::BoxLayout* layout_;
+ views::LabelButton* back_button_;
+ views::LabelButton* forward_button_;
+ views::LabelButton* omnibox_launcher_;
+
+ DISALLOW_COPY_AND_ASSIGN(ToolbarView);
+};
+
+} // namespace mandoline
+
+#endif // MANDOLINE_UI_DESKTOP_UI_TOOLBAR_VIEW_H_
« no previous file with comments | « mandoline/ui/desktop_ui/browser_window.cc ('k') | mandoline/ui/desktop_ui/toolbar_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698