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

Side by Side 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, 1 month 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_OTHER_DEVICE_MENU_VIEWS_H_
6 #define CHROME_BROWSER_UI_VIEWS_OTHER_DEVICE_MENU_VIEWS_H_
7
8 #include "base/memory/scoped_ptr.h"
tfarina 2012/10/29 01:37:43 include basictypes for DISALLOW_ and compiler_spec
9 #include "chrome/browser/ui/search/other_device_menu_controller.h"
10
11 namespace gfx{
tfarina 2012/10/29 01:37:43 nit: one whitespace between gfx and {
jeremycho 2012/10/29 19:55:28 Done.
12 class Point;
13 }
14
15 namespace ui {
16 class SimpleMenuModel;
17 }
18
19 namespace views {
20 class MenuRunner;
21 }
22
23 class OtherDeviceMenuViews : public OtherDeviceMenu {
24 public:
25 explicit OtherDeviceMenuViews(ui::SimpleMenuModel* menu_model);
26 virtual ~OtherDeviceMenuViews();
27
28 virtual void ShowMenu(
29 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.
30
31 private:
32 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.
33 scoped_ptr<views::MenuRunner> menu_runner_;
34
35 DISALLOW_COPY_AND_ASSIGN(OtherDeviceMenuViews);
36 };
37
38 #endif // CHROME_BROWSER_UI_VIEWS_OTHER_DEVICE_MENU_VIEWS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698