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

Unified Diff: chrome/browser/ui/views/other_device_menu_views.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: Fix dumb typo. 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
Index: chrome/browser/ui/views/other_device_menu_views.h
diff --git a/chrome/browser/ui/views/other_device_menu_views.h b/chrome/browser/ui/views/other_device_menu_views.h
new file mode 100644
index 0000000000000000000000000000000000000000..a5cf53d1d2c5bd492ad440f3a60332d56f0ec1a0
--- /dev/null
+++ b/chrome/browser/ui/views/other_device_menu_views.h
@@ -0,0 +1,38 @@
+// 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_VIEWS_OTHER_DEVICE_MENU_VIEWS_H_
+#define CHROME_BROWSER_UI_VIEWS_OTHER_DEVICE_MENU_VIEWS_H_
+
+#include "base/memory/scoped_ptr.h"
tfarina 2012/10/29 01:37:43 include basictypes for DISALLOW_ and compiler_spec
+#include "chrome/browser/ui/search/other_device_menu_controller.h"
+
+namespace gfx{
tfarina 2012/10/29 01:37:43 nit: one whitespace between gfx and {
jeremycho 2012/10/29 19:55:28 Done.
+class Point;
+}
+
+namespace ui {
+class SimpleMenuModel;
+}
+
+namespace views {
+class MenuRunner;
+}
+
+class OtherDeviceMenuViews : public OtherDeviceMenu {
+ public:
+ explicit OtherDeviceMenuViews(ui::SimpleMenuModel* menu_model);
+ virtual ~OtherDeviceMenuViews();
+
+ virtual void ShowMenu(
+ gfx::NativeWindow window, const gfx::Point& location) OVERRIDE;
tfarina 2012/10/29 01:37:43 nit: one arg per line!
jeremycho 2012/10/29 19:55:28 Done.
+
+ private:
+ ui::SimpleMenuModel* menu_model_; // Owned by the controller.
tfarina 2012/10/29 01:37:43 which controller? better to write the class name.
jeremycho 2012/10/29 19:55:28 Done.
+ scoped_ptr<views::MenuRunner> menu_runner_;
+
+ DISALLOW_COPY_AND_ASSIGN(OtherDeviceMenuViews);
+};
+
+#endif // CHROME_BROWSER_UI_VIEWS_OTHER_DEVICE_MENU_VIEWS_H_

Powered by Google App Engine
This is Rietveld 408576698