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

Unified Diff: chrome/browser/ui/gtk/other_device_menu_gtk.h

Issue 11009013: NTP5: Starting implementation of a native menu for showing other device sessions. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Respond to tfarina's comments. Created 8 years, 2 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 | « chrome/browser/ui/cocoa/other_device_menu_cocoa.mm ('k') | chrome/browser/ui/gtk/other_device_menu_gtk.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/gtk/other_device_menu_gtk.h
diff --git a/chrome/browser/ui/gtk/other_device_menu_gtk.h b/chrome/browser/ui/gtk/other_device_menu_gtk.h
new file mode 100644
index 0000000000000000000000000000000000000000..64e7c33a93add3e665f6fac91b674d77c79c231b
--- /dev/null
+++ b/chrome/browser/ui/gtk/other_device_menu_gtk.h
@@ -0,0 +1,34 @@
+// Copyright (c) 2012 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 CHROME_BROWSER_UI_GTK_OTHER_DEVICE_MENU_GTK_H_
+#define CHROME_BROWSER_UI_GTK_OTHER_DEVICE_MENU_GTK_H_
+
+#include "base/basictypes.h"
+#include "base/compiler_specific.h"
+#include "chrome/browser/ui/search/other_device_menu_controller.h"
+
+namespace gfx {
+class Point;
+}
+
+namespace ui {
+class SimpleMenuModel;
+}
+
+class OtherDeviceMenuGtk : public OtherDeviceMenu {
+ public:
+ explicit OtherDeviceMenuGtk(ui::SimpleMenuModel* menu_model);
+ virtual ~OtherDeviceMenuGtk();
+
+ virtual void ShowMenu(gfx::NativeWindow window,
+ const gfx::Point& location) OVERRIDE;
+
+ private:
+ ui::SimpleMenuModel* menu_model_; // Owned by OtherDeviceMenuController.
+
+ DISALLOW_COPY_AND_ASSIGN(OtherDeviceMenuGtk);
+};
+
+#endif // CHROME_BROWSER_UI_GTK_OTHER_DEVICE_MENU_GTK_H_
« no previous file with comments | « chrome/browser/ui/cocoa/other_device_menu_cocoa.mm ('k') | chrome/browser/ui/gtk/other_device_menu_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698