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

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: Respond to tfarina's comments. 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/basictypes.h"
9 #include "base/compiler_specific.h"
10 #include "base/memory/scoped_ptr.h"
11 #include "chrome/browser/ui/search/other_device_menu_controller.h"
12
13 namespace gfx {
14 class Point;
15 }
16
17 namespace ui {
18 class SimpleMenuModel;
19 }
20
21 namespace views {
22 class MenuRunner;
23 }
24
25 class OtherDeviceMenuViews : public OtherDeviceMenu {
26 public:
27 explicit OtherDeviceMenuViews(ui::SimpleMenuModel* menu_model);
28 virtual ~OtherDeviceMenuViews();
29
30 virtual void ShowMenu(gfx::NativeWindow window,
31 const gfx::Point& location) OVERRIDE;
32
33 private:
34 ui::SimpleMenuModel* menu_model_; // Owned by OtherDeviceMenuController.
35 scoped_ptr<views::MenuRunner> menu_runner_;
36
37 DISALLOW_COPY_AND_ASSIGN(OtherDeviceMenuViews);
38 };
39
40 #endif // CHROME_BROWSER_UI_VIEWS_OTHER_DEVICE_MENU_VIEWS_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/search/other_device_menu_controller.cc ('k') | chrome/browser/ui/views/other_device_menu_views.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698