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

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

Issue 10879008: notifications: Forward declared Balloon in notification_options_menu_model.h (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: include scoped_ptr.h Created 8 years, 4 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/browser/notifications/notification_options_menu_model.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_OPTIONS_MENU_MODEL_H_ 5 #ifndef CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_OPTIONS_MENU_MODEL_H_
6 #define CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_OPTIONS_MENU_MODEL_H_ 6 #define CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_OPTIONS_MENU_MODEL_H_
7 7
8 #include "chrome/browser/notifications/balloon.h" 8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h"
10 #include "base/memory/scoped_ptr.h"
9 #include "ui/base/models/simple_menu_model.h" 11 #include "ui/base/models/simple_menu_model.h"
10 12
13 class Balloon;
14
11 // Model for the corner-selection submenu. 15 // Model for the corner-selection submenu.
12 class CornerSelectionMenuModel : public ui::SimpleMenuModel, 16 class CornerSelectionMenuModel : public ui::SimpleMenuModel,
13 public ui::SimpleMenuModel::Delegate { 17 public ui::SimpleMenuModel::Delegate {
14 public: 18 public:
15 explicit CornerSelectionMenuModel(Balloon* balloon); 19 explicit CornerSelectionMenuModel(Balloon* balloon);
16 virtual ~CornerSelectionMenuModel(); 20 virtual ~CornerSelectionMenuModel();
17 21
18 // Overridden from ui::SimpleMenuModel::Delegate: 22 // Overridden from ui::SimpleMenuModel::Delegate:
19 virtual bool IsCommandIdChecked(int command_id) const OVERRIDE; 23 virtual bool IsCommandIdChecked(int command_id) const OVERRIDE;
20 virtual bool IsCommandIdEnabled(int command_id) const OVERRIDE; 24 virtual bool IsCommandIdEnabled(int command_id) const OVERRIDE;
(...skipping 30 matching lines...) Expand all
51 55
52 private: 56 private:
53 Balloon* balloon_; // Not owned. 57 Balloon* balloon_; // Not owned.
54 58
55 scoped_ptr<CornerSelectionMenuModel> corner_menu_model_; 59 scoped_ptr<CornerSelectionMenuModel> corner_menu_model_;
56 60
57 DISALLOW_COPY_AND_ASSIGN(NotificationOptionsMenuModel); 61 DISALLOW_COPY_AND_ASSIGN(NotificationOptionsMenuModel);
58 }; 62 };
59 63
60 #endif // CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_OPTIONS_MENU_MODEL_H_ 64 #endif // CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_OPTIONS_MENU_MODEL_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/notifications/notification_options_menu_model.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698