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

Unified Diff: chrome/browser/extensions/extension_input_api.cc

Issue 8342048: Make NotificationService an interface in the content namespace, and switch callers to use it. Mov... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 2 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
Index: chrome/browser/extensions/extension_input_api.cc
===================================================================
--- chrome/browser/extensions/extension_input_api.cc (revision 106380)
+++ chrome/browser/extensions/extension_input_api.cc (working copy)
@@ -20,7 +20,7 @@
#include "views/widget/widget.h"
#if defined(USE_VIRTUAL_KEYBOARD)
-#include "content/common/notification_service.h"
+#include "content/public/browser/notification_service.h"
#endif
#if defined(OS_CHROMEOS) && defined(TOUCH_UI)
@@ -166,10 +166,10 @@
#if defined(USE_VIRTUAL_KEYBOARD)
bool HideKeyboardFunction::RunImpl() {
- NotificationService::current()->Notify(
+ content::NotificationService::current()->Notify(
chrome::NOTIFICATION_HIDE_KEYBOARD_INVOKED,
content::Source<HideKeyboardFunction>(this),
- NotificationService::NoDetails());
+ content::NotificationService::NoDetails());
return true;
}
@@ -185,7 +185,7 @@
// TODO(penghuang) Check the height is not greater than height of browser view
// and set the height of virtual keyboard directly instead of using
// notification.
- NotificationService::current()->Notify(
+ content::NotificationService::current()->Notify(
chrome::NOTIFICATION_SET_KEYBOARD_HEIGHT_INVOKED,
content::Source<SetKeyboardHeightFunction>(this),
content::Details<int>(&height));
« no previous file with comments | « chrome/browser/extensions/extension_host.cc ('k') | chrome/browser/extensions/extension_input_method_apitest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698