Index: chrome/browser/chromeos/login/touch_login_view.cc |
=================================================================== |
--- chrome/browser/chromeos/login/touch_login_view.cc (revision 91880) |
+++ chrome/browser/chromeos/login/touch_login_view.cc (working copy) |
@@ -53,16 +53,16 @@ |
InitVirtualKeyboard(); |
registrar_.Add(this, |
- NotificationType::FOCUS_CHANGED_IN_PAGE, |
+ chrome::FOCUS_CHANGED_IN_PAGE, |
NotificationService::AllSources()); |
registrar_.Add(this, |
- NotificationType::TAB_CONTENTS_DESTROYED, |
+ chrome::TAB_CONTENTS_DESTROYED, |
NotificationService::AllSources()); |
registrar_.Add(this, |
- NotificationType::HIDE_KEYBOARD_INVOKED, |
+ chrome::HIDE_KEYBOARD_INVOKED, |
NotificationService::AllSources()); |
registrar_.Add(this, |
- NotificationType::SET_KEYBOARD_HEIGHT_INVOKED, |
+ chrome::SET_KEYBOARD_HEIGHT_INVOKED, |
NotificationService::AllSources()); |
} |
@@ -150,10 +150,10 @@ |
return NONE; |
} |
-void TouchLoginView::Observe(NotificationType type, |
+void TouchLoginView::Observe(int type, |
const NotificationSource& source, |
const NotificationDetails& details) { |
- if (type == NotificationType::FOCUS_CHANGED_IN_PAGE) { |
+ if (type == chrome::FOCUS_CHANGED_IN_PAGE) { |
// Only modify the keyboard state if the currently active tab sent the |
// notification. |
const TabContents* current_tab = webui_login_->tab_contents(); |
@@ -167,12 +167,12 @@ |
// can be determined after tab switching. |
GetFocusedStateAccessor()->SetProperty( |
source_tab->property_bag(), editable); |
- } else if (type == NotificationType::TAB_CONTENTS_DESTROYED) { |
+ } else if (type == chrome::TAB_CONTENTS_DESTROYED) { |
GetFocusedStateAccessor()->DeleteProperty( |
Source<TabContents>(source).ptr()->property_bag()); |
- } else if (type == NotificationType::HIDE_KEYBOARD_INVOKED) { |
+ } else if (type == chrome::HIDE_KEYBOARD_INVOKED) { |
UpdateKeyboardAndLayout(false); |
- } else if (type == NotificationType::SET_KEYBOARD_HEIGHT_INVOKED) { |
+ } else if (type == chrome::SET_KEYBOARD_HEIGHT_INVOKED) { |
// TODO(penghuang) Allow extension conrtol the virtual keyboard directly |
// instead of using Notification. |
int height = *(Details<int>(details).ptr()); |