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

Side by Side Diff: chrome/browser/ui/views/app_list/win/app_list_service_win.cc

Issue 645683002: Get IME's to work in Chrome OS mode on Windows 7. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix presubmit errors Created 6 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 unified diff | Download patch
« no previous file with comments | « no previous file | ui/base/ime/remote_input_method_win.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/views/app_list/win/app_list_service_win.h" 5 #include "chrome/browser/ui/views/app_list/win/app_list_service_win.h"
6 6
7 #include <dwmapi.h> 7 #include <dwmapi.h>
8 #include <sstream> 8 #include <sstream>
9 9
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 20 matching lines...) Expand all
31 #include "chrome/browser/ui/views/app_list/win/app_list_controller_delegate_win. h" 31 #include "chrome/browser/ui/views/app_list/win/app_list_controller_delegate_win. h"
32 #include "chrome/browser/ui/views/app_list/win/app_list_win.h" 32 #include "chrome/browser/ui/views/app_list/win/app_list_win.h"
33 #include "chrome/browser/web_applications/web_app.h" 33 #include "chrome/browser/web_applications/web_app.h"
34 #include "chrome/common/chrome_constants.h" 34 #include "chrome/common/chrome_constants.h"
35 #include "chrome/common/chrome_switches.h" 35 #include "chrome/common/chrome_switches.h"
36 #include "chrome/common/chrome_version_info.h" 36 #include "chrome/common/chrome_version_info.h"
37 #include "chrome/common/pref_names.h" 37 #include "chrome/common/pref_names.h"
38 #include "chrome/installer/util/browser_distribution.h" 38 #include "chrome/installer/util/browser_distribution.h"
39 #include "content/public/browser/browser_thread.h" 39 #include "content/public/browser/browser_thread.h"
40 #include "ui/app_list/views/app_list_view.h" 40 #include "ui/app_list/views/app_list_view.h"
41 #include "ui/base/ui_base_switches.h"
41 #include "ui/base/win/shell.h" 42 #include "ui/base/win/shell.h"
42 43
43 #if defined(GOOGLE_CHROME_BUILD) 44 #if defined(GOOGLE_CHROME_BUILD)
44 #include "chrome/installer/util/google_update_settings.h" 45 #include "chrome/installer/util/google_update_settings.h"
45 #include "chrome/installer/util/install_util.h" 46 #include "chrome/installer/util/install_util.h"
46 #include "chrome/installer/util/updating_app_registration_data.h" 47 #include "chrome/installer/util/updating_app_registration_data.h"
47 #include "chrome/installer/util/util_constants.h" 48 #include "chrome/installer/util/util_constants.h"
48 #endif // GOOGLE_CHROME_BUILD 49 #endif // GOOGLE_CHROME_BUILD
49 50
50 // static 51 // static
51 AppListService* AppListService::Get(chrome::HostDesktopType desktop_type) { 52 AppListService* AppListService::Get(chrome::HostDesktopType desktop_type) {
52 if (desktop_type == chrome::HOST_DESKTOP_TYPE_ASH) 53 if (desktop_type == chrome::HOST_DESKTOP_TYPE_ASH) {
54 DCHECK(CommandLine::ForCurrentProcess()->HasSwitch(
55 switches::kViewerConnect));
53 return AppListServiceAsh::GetInstance(); 56 return AppListServiceAsh::GetInstance();
57 }
54 58
55 return AppListServiceWin::GetInstance(); 59 return AppListServiceWin::GetInstance();
56 } 60 }
57 61
58 // static 62 // static
59 void AppListService::InitAll(Profile* initial_profile) { 63 void AppListService::InitAll(Profile* initial_profile) {
60 AppListServiceAsh::GetInstance()->Init(initial_profile); 64 if (CommandLine::ForCurrentProcess()->HasSwitch(switches::kViewerConnect))
65 AppListServiceAsh::GetInstance()->Init(initial_profile);
66
61 AppListServiceWin::GetInstance()->Init(initial_profile); 67 AppListServiceWin::GetInstance()->Init(initial_profile);
62 } 68 }
63 69
64 namespace { 70 namespace {
65 71
66 // Migrate chrome::kAppLauncherIsEnabled pref to 72 // Migrate chrome::kAppLauncherIsEnabled pref to
67 // chrome::kAppLauncherHasBeenEnabled pref. 73 // chrome::kAppLauncherHasBeenEnabled pref.
68 void MigrateAppLauncherEnabledPref() { 74 void MigrateAppLauncherEnabledPref() {
69 PrefService* prefs = g_browser_process->local_state(); 75 PrefService* prefs = g_browser_process->local_state();
70 if (prefs->HasPrefPath(prefs::kAppLauncherIsEnabled)) { 76 if (prefs->HasPrefPath(prefs::kAppLauncherIsEnabled)) {
(...skipping 311 matching lines...) Expand 10 before | Expand all | Expand 10 after
382 activation_tracker_.reset(new ActivationTrackerWin(this)); 388 activation_tracker_.reset(new ActivationTrackerWin(this));
383 } 389 }
384 390
385 void AppListServiceWin::OnViewDismissed() { 391 void AppListServiceWin::OnViewDismissed() {
386 activation_tracker_->OnViewHidden(); 392 activation_tracker_->OnViewHidden();
387 } 393 }
388 394
389 void AppListServiceWin::MoveNearCursor(app_list::AppListView* view) { 395 void AppListServiceWin::MoveNearCursor(app_list::AppListView* view) {
390 AppListWin::MoveNearCursor(view); 396 AppListWin::MoveNearCursor(view);
391 } 397 }
OLDNEW
« no previous file with comments | « no previous file | ui/base/ime/remote_input_method_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698