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

Unified Diff: chrome/browser/ui/virtual_keyboard/virtual_keyboard_manager.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/ui/virtual_keyboard/virtual_keyboard_manager.cc
===================================================================
--- chrome/browser/ui/virtual_keyboard/virtual_keyboard_manager.cc (revision 106380)
+++ chrome/browser/ui/virtual_keyboard/virtual_keyboard_manager.cc (working copy)
@@ -21,7 +21,7 @@
#include "chrome/common/url_constants.h"
#include "content/browser/site_instance.h"
#include "content/browser/tab_contents/tab_contents_observer.h"
-#include "content/common/notification_service.h"
+#include "content/public/browser/notification_service.h"
#include "ui/base/animation/animation_delegate.h"
#include "ui/base/animation/slide_animation.h"
#include "ui/base/ime/text_input_type.h"
@@ -210,16 +210,16 @@
views::TextInputTypeTracker::GetInstance()->AddTextInputTypeObserver(this);
registrar_.Add(this,
chrome::NOTIFICATION_FOCUSED_EDITABLE_NODE_TOUCHED,
- NotificationService::AllSources());
+ content::NotificationService::AllSources());
registrar_.Add(this,
chrome::NOTIFICATION_HIDE_KEYBOARD_INVOKED,
- NotificationService::AllSources());
+ content::NotificationService::AllSources());
registrar_.Add(this,
chrome::NOTIFICATION_SET_KEYBOARD_HEIGHT_INVOKED,
- NotificationService::AllSources());
+ content::NotificationService::AllSources());
registrar_.Add(this,
content::NOTIFICATION_APP_TERMINATING,
- NotificationService::AllSources());
+ content::NotificationService::AllSources());
#if defined(OS_CHROMEOS)
chromeos::input_method::InputMethodManager* manager =
@@ -262,7 +262,7 @@
Show();
bool visible = true;
- NotificationService::current()->Notify(
+ content::NotificationService::current()->Notify(
chrome::NOTIFICATION_KEYBOARD_VISIBILITY_CHANGED,
content::Source<KeyboardWidget>(this),
content::Details<bool>(&visible));
@@ -276,7 +276,7 @@
animation_->Hide();
bool visible = false;
- NotificationService::current()->Notify(
+ content::NotificationService::current()->Notify(
chrome::NOTIFICATION_KEYBOARD_VISIBILITY_CHANGED,
content::Source<KeyboardWidget>(this),
content::Details<bool>(&visible));
@@ -328,7 +328,7 @@
else
keyboard_rect = GetWindowScreenBounds();
- NotificationService::current()->Notify(
+ content::NotificationService::current()->Notify(
chrome::NOTIFICATION_KEYBOARD_VISIBLE_BOUNDS_CHANGED,
content::Source<KeyboardWidget>(this),
content::Details<gfx::Rect>(&keyboard_rect));
« no previous file with comments | « chrome/browser/ui/views/toolbar_view.cc ('k') | chrome/browser/ui/virtual_keyboard/virtual_keyboard_manager_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698