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

Side by Side Diff: chrome/browser/ui/content_settings/content_setting_bubble_model.h

Issue 7327007: Moving notification types which are chrome specific to a new header file chrome_notification_type... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 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 | Annotate | Revision Log
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_UI_CONTENT_SETTINGS_CONTENT_SETTING_BUBBLE_MODEL_H_ 5 #ifndef CHROME_BROWSER_UI_CONTENT_SETTINGS_CONTENT_SETTING_BUBBLE_MODEL_H_
6 #define CHROME_BROWSER_UI_CONTENT_SETTINGS_CONTENT_SETTING_BUBBLE_MODEL_H_ 6 #define CHROME_BROWSER_UI_CONTENT_SETTINGS_CONTENT_SETTING_BUBBLE_MODEL_H_
7 #pragma once 7 #pragma once
8 8
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 bool custom_link_enabled; 74 bool custom_link_enabled;
75 std::string manage_link; 75 std::string manage_link;
76 76
77 private: 77 private:
78 DISALLOW_COPY_AND_ASSIGN(BubbleContent); 78 DISALLOW_COPY_AND_ASSIGN(BubbleContent);
79 }; 79 };
80 80
81 const BubbleContent& bubble_content() const { return bubble_content_; } 81 const BubbleContent& bubble_content() const { return bubble_content_; }
82 82
83 // NotificationObserver: 83 // NotificationObserver:
84 virtual void Observe(NotificationType type, 84 virtual void Observe(int type,
85 const NotificationSource& source, 85 const NotificationSource& source,
86 const NotificationDetails& details); 86 const NotificationDetails& details);
87 87
88 virtual void OnRadioClicked(int radio_index) {} 88 virtual void OnRadioClicked(int radio_index) {}
89 virtual void OnPopupClicked(int index) {} 89 virtual void OnPopupClicked(int index) {}
90 virtual void OnCustomLinkClicked() {} 90 virtual void OnCustomLinkClicked() {}
91 virtual void OnManageLinkClicked() {} 91 virtual void OnManageLinkClicked() {}
92 92
93 protected: 93 protected:
94 ContentSettingBubbleModel(TabContentsWrapper* tab_contents, Profile* profile, 94 ContentSettingBubbleModel(TabContentsWrapper* tab_contents, Profile* profile,
(...skipping 26 matching lines...) Expand all
121 private: 121 private:
122 TabContentsWrapper* tab_contents_; 122 TabContentsWrapper* tab_contents_;
123 Profile* profile_; 123 Profile* profile_;
124 ContentSettingsType content_type_; 124 ContentSettingsType content_type_;
125 BubbleContent bubble_content_; 125 BubbleContent bubble_content_;
126 // A registrar for listening for TAB_CONTENTS_DESTROYED notifications. 126 // A registrar for listening for TAB_CONTENTS_DESTROYED notifications.
127 NotificationRegistrar registrar_; 127 NotificationRegistrar registrar_;
128 }; 128 };
129 129
130 #endif // CHROME_BROWSER_UI_CONTENT_SETTINGS_CONTENT_SETTING_BUBBLE_MODEL_H_ 130 #endif // CHROME_BROWSER_UI_CONTENT_SETTINGS_CONTENT_SETTING_BUBBLE_MODEL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698