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

Side by Side Diff: chrome/browser/ui/ash/system_tray_delegate_chromeos.cc

Issue 727143002: Moves code from chromeos/ime to ui/base/ime/chromeos. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add ui/chromeos/ime/DEPS Created 6 years, 1 month 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 unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/ui/ash/system_tray_delegate_chromeos.h" 5 #include "chrome/browser/ui/ash/system_tray_delegate_chromeos.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 #include "chrome/browser/ui/tabs/tab_strip_model.h" 82 #include "chrome/browser/ui/tabs/tab_strip_model.h"
83 #include "chrome/browser/ui/webui/chromeos/charger_replacement_handler.h" 83 #include "chrome/browser/ui/webui/chromeos/charger_replacement_handler.h"
84 #include "chrome/browser/upgrade_detector.h" 84 #include "chrome/browser/upgrade_detector.h"
85 #include "chrome/common/chrome_switches.h" 85 #include "chrome/common/chrome_switches.h"
86 #include "chrome/common/pref_names.h" 86 #include "chrome/common/pref_names.h"
87 #include "chrome/common/url_constants.h" 87 #include "chrome/common/url_constants.h"
88 #include "chrome/grit/generated_resources.h" 88 #include "chrome/grit/generated_resources.h"
89 #include "chrome/grit/locale_settings.h" 89 #include "chrome/grit/locale_settings.h"
90 #include "chromeos/dbus/dbus_thread_manager.h" 90 #include "chromeos/dbus/dbus_thread_manager.h"
91 #include "chromeos/dbus/session_manager_client.h" 91 #include "chromeos/dbus/session_manager_client.h"
92 #include "chromeos/ime/extension_ime_util.h"
93 #include "chromeos/ime/ime_keyboard.h"
94 #include "chromeos/ime/input_method_manager.h"
95 #include "chromeos/login/login_state.h" 92 #include "chromeos/login/login_state.h"
96 #include "chromeos/network/portal_detector/network_portal_detector.h" 93 #include "chromeos/network/portal_detector/network_portal_detector.h"
97 #include "components/google/core/browser/google_util.h" 94 #include "components/google/core/browser/google_util.h"
98 #include "components/policy/core/common/cloud/cloud_policy_store.h" 95 #include "components/policy/core/common/cloud/cloud_policy_store.h"
99 #include "components/user_manager/user.h" 96 #include "components/user_manager/user.h"
100 #include "components/user_manager/user_manager.h" 97 #include "components/user_manager/user_manager.h"
101 #include "components/user_manager/user_type.h" 98 #include "components/user_manager/user_type.h"
102 #include "content/public/browser/notification_observer.h" 99 #include "content/public/browser/notification_observer.h"
103 #include "content/public/browser/notification_service.h" 100 #include "content/public/browser/notification_service.h"
104 #include "content/public/browser/user_metrics.h" 101 #include "content/public/browser/user_metrics.h"
105 #include "content/public/browser/web_contents.h" 102 #include "content/public/browser/web_contents.h"
106 #include "device/bluetooth/bluetooth_adapter.h" 103 #include "device/bluetooth/bluetooth_adapter.h"
107 #include "device/bluetooth/bluetooth_adapter_factory.h" 104 #include "device/bluetooth/bluetooth_adapter_factory.h"
108 #include "device/bluetooth/bluetooth_device.h" 105 #include "device/bluetooth/bluetooth_device.h"
109 #include "net/base/escape.h" 106 #include "net/base/escape.h"
110 #include "third_party/cros_system_api/dbus/service_constants.h" 107 #include "third_party/cros_system_api/dbus/service_constants.h"
111 #include "ui/base/l10n/l10n_util.h" 108 #include "ui/base/l10n/l10n_util.h"
112 #include "ui/base/l10n/time_format.h" 109 #include "ui/base/l10n/time_format.h"
113 #include "ui/chromeos/ime/input_method_menu_item.h" 110 #include "ui/chromeos/ime/extension_ime_util.h"
114 #include "ui/chromeos/ime/input_method_menu_manager.h" 111 #include "ui/chromeos/ime/ime_keyboard.h"
112 #include "ui/chromeos/ime/input_method_manager.h"
113 #include "ui/chromeos/ime/view/input_method_menu_item.h"
114 #include "ui/chromeos/ime/view/input_method_menu_manager.h"
115 115
116 namespace chromeos { 116 namespace chromeos {
117 117
118 namespace { 118 namespace {
119 119
120 // The minimum session length limit that can be set. 120 // The minimum session length limit that can be set.
121 const int kSessionLengthLimitMinMs = 30 * 1000; // 30 seconds. 121 const int kSessionLengthLimitMinMs = 30 * 1000; // 30 seconds.
122 122
123 // The maximum session length limit that can be set. 123 // The maximum session length limit that can be set.
124 const int kSessionLengthLimitMaxMs = 24 * 60 * 60 * 1000; // 24 hours. 124 const int kSessionLengthLimitMaxMs = 24 * 60 * 60 * 1000; // 24 hours.
(...skipping 1186 matching lines...) Expand 10 before | Expand all | Expand 10 after
1311 accessibility_subscription_.reset(); 1311 accessibility_subscription_.reset();
1312 else 1312 else
1313 OnAccessibilityModeChanged(details.notify); 1313 OnAccessibilityModeChanged(details.notify);
1314 } 1314 }
1315 1315
1316 ash::SystemTrayDelegate* CreateSystemTrayDelegate() { 1316 ash::SystemTrayDelegate* CreateSystemTrayDelegate() {
1317 return new SystemTrayDelegateChromeOS(); 1317 return new SystemTrayDelegateChromeOS();
1318 } 1318 }
1319 1319
1320 } // namespace chromeos 1320 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698