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

Unified Diff: chrome/browser/speech/speech_input_bubble_controller.cc

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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/speech/speech_input_bubble_controller.h ('k') | chrome/browser/spellcheck_host_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/speech/speech_input_bubble_controller.cc
===================================================================
--- chrome/browser/speech/speech_input_bubble_controller.cc (revision 91968)
+++ chrome/browser/speech/speech_input_bubble_controller.cc (working copy)
@@ -7,9 +7,9 @@
#include "chrome/browser/tab_contents/tab_util.h"
#include "content/browser/browser_thread.h"
#include "content/browser/tab_contents/tab_contents.h"
+#include "content/common/content_notification_types.h"
#include "content/common/notification_registrar.h"
#include "content/common/notification_source.h"
-#include "content/common/notification_type.h"
#include "ui/gfx/rect.h"
namespace speech_input {
@@ -110,18 +110,18 @@
}
if (action == BUBBLE_ADDED) {
- registrar_->Add(this, NotificationType::TAB_CONTENTS_DESTROYED,
+ registrar_->Add(this, content::NOTIFICATION_TAB_CONTENTS_DESTROYED,
Source<TabContents>(tab_contents));
} else {
- registrar_->Remove(this, NotificationType::TAB_CONTENTS_DESTROYED,
+ registrar_->Remove(this, content::NOTIFICATION_TAB_CONTENTS_DESTROYED,
Source<TabContents>(tab_contents));
}
}
-void SpeechInputBubbleController::Observe(NotificationType type,
+void SpeechInputBubbleController::Observe(int type,
const NotificationSource& source,
const NotificationDetails& details) {
- if (type == NotificationType::TAB_CONTENTS_DESTROYED) {
+ if (type == content::NOTIFICATION_TAB_CONTENTS_DESTROYED) {
// Cancel all bubbles and active recognition sessions for this tab.
TabContents* tab_contents = Source<TabContents>(source).ptr();
BubbleCallerIdMap::iterator iter = bubbles_.begin();
« no previous file with comments | « chrome/browser/speech/speech_input_bubble_controller.h ('k') | chrome/browser/spellcheck_host_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698