OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 #include "chrome/browser/chromeos/input_method/browser_state_monitor.h" | 5 #include "chrome/browser/chromeos/input_method/browser_state_monitor.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "chrome/browser/chrome_notification_types.h" |
8 #include "chrome/browser/chromeos/input_method/input_method_util.h" | 9 #include "chrome/browser/chromeos/input_method/input_method_util.h" |
9 #include "chrome/common/chrome_notification_types.h" | |
10 #include "chromeos/ime/input_method_delegate.h" | 10 #include "chromeos/ime/input_method_delegate.h" |
11 #include "content/public/browser/notification_service.h" | 11 #include "content/public/browser/notification_service.h" |
12 | 12 |
13 namespace chromeos { | 13 namespace chromeos { |
14 namespace input_method { | 14 namespace input_method { |
15 | 15 |
16 BrowserStateMonitor::BrowserStateMonitor( | 16 BrowserStateMonitor::BrowserStateMonitor( |
17 const base::Callback<void(InputMethodManager::State)>& observer) | 17 const base::Callback<void(InputMethodManager::State)>& observer) |
18 : observer_(observer), | 18 : observer_(observer), |
19 state_(InputMethodManager::STATE_LOGIN_SCREEN) { | 19 state_(InputMethodManager::STATE_LOGIN_SCREEN) { |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
101 // | 101 // |
102 // We have to be careful not to overwrite both local and user prefs when | 102 // We have to be careful not to overwrite both local and user prefs when |
103 // preloaded engine is set. Note that it does not work to do nothing in | 103 // preloaded engine is set. Note that it does not work to do nothing in |
104 // InputMethodChanged() between chrome::NOTIFICATION_LOGIN_USER_CHANGED and | 104 // InputMethodChanged() between chrome::NOTIFICATION_LOGIN_USER_CHANGED and |
105 // chrome::NOTIFICATION_SESSION_STARTED because SESSION_STARTED is sent very | 105 // chrome::NOTIFICATION_SESSION_STARTED because SESSION_STARTED is sent very |
106 // early on Chrome crash/restart. | 106 // early on Chrome crash/restart. |
107 } | 107 } |
108 | 108 |
109 } // namespace input_method | 109 } // namespace input_method |
110 } // namespace chromeos | 110 } // namespace chromeos |
OLD | NEW |