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

Side by Side Diff: chrome/browser/notifications/notification_options_menu_model.h

Issue 3045003: Reapply r52859 (Closed) Base URL: git://git.chromium.org/chromium.git
Patch Set: Created 10 years, 5 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright (c) 2010 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_NOTIFICATIONS_NOTIFICATION_OPTIONS_MENU_MODEL_H_
6 #define CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_OPTIONS_MENU_MODEL_H_
7
8 #include "app/menus/simple_menu_model.h"
9 #include "chrome/browser/notifications/balloon.h"
10
11 class NotificationOptionsMenuModel : public menus::SimpleMenuModel,
12 public menus::SimpleMenuModel::Delegate {
13 public:
14 explicit NotificationOptionsMenuModel(Balloon* balloon);
15 virtual ~NotificationOptionsMenuModel();
16
17 // Overridden from menus::SimpleMenuModel::Delegate:
18 virtual bool IsCommandIdChecked(int command_id) const;
19 virtual bool IsCommandIdEnabled(int command_id) const;
20 virtual bool GetAcceleratorForCommandId(int command_id,
21 menus::Accelerator* accelerator);
22 virtual void ExecuteCommand(int command_id);
23
24 private:
25 Balloon* balloon_; // Not owned.
26
27 DISALLOW_COPY_AND_ASSIGN(NotificationOptionsMenuModel);
28 };
29
30 #endif // CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_OPTIONS_MENU_MODEL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698