OLD | NEW |
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/chrome_shell_delegate.h" | 5 #include "chrome/browser/ui/ash/chrome_shell_delegate.h" |
6 | 6 |
7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
8 #include "ash/magnifier/magnifier_constants.h" | 8 #include "ash/magnifier/magnifier_constants.h" |
9 #include "chrome/browser/prefs/session_startup_pref.h" | 9 #include "chrome/browser/prefs/session_startup_pref.h" |
10 #include "chrome/browser/profiles/profile_manager.h" | 10 #include "chrome/browser/profiles/profile_manager.h" |
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
116 | 116 |
117 void ChromeShellDelegate::HandleMediaNextTrack() { | 117 void ChromeShellDelegate::HandleMediaNextTrack() { |
118 } | 118 } |
119 | 119 |
120 void ChromeShellDelegate::HandleMediaPlayPause() { | 120 void ChromeShellDelegate::HandleMediaPlayPause() { |
121 } | 121 } |
122 | 122 |
123 void ChromeShellDelegate::HandleMediaPrevTrack() { | 123 void ChromeShellDelegate::HandleMediaPrevTrack() { |
124 } | 124 } |
125 | 125 |
| 126 bool ChromeShellDelegate::IsTouchHudProjectionEnabled() const { |
| 127 return false; |
| 128 } |
| 129 |
| 130 void ChromeShellDelegate::ToggleTouchHudProjection() { |
| 131 } |
| 132 |
126 void ChromeShellDelegate::Observe(int type, | 133 void ChromeShellDelegate::Observe(int type, |
127 const content::NotificationSource& source, | 134 const content::NotificationSource& source, |
128 const content::NotificationDetails& details) { | 135 const content::NotificationDetails& details) { |
129 switch (type) { | 136 switch (type) { |
130 case chrome::NOTIFICATION_ASH_SESSION_STARTED: { | 137 case chrome::NOTIFICATION_ASH_SESSION_STARTED: { |
131 // If we are launched to service a windows 8 search request then let the | 138 // If we are launched to service a windows 8 search request then let the |
132 // IPC which carries the search string create the browser and initiate | 139 // IPC which carries the search string create the browser and initiate |
133 // the navigation. | 140 // the navigation. |
134 if (CommandLine::ForCurrentProcess()->HasSwitch( | 141 if (CommandLine::ForCurrentProcess()->HasSwitch( |
135 switches::kWindows8Search)) | 142 switches::kWindows8Search)) |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
171 void ChromeShellDelegate::PlatformInit() { | 178 void ChromeShellDelegate::PlatformInit() { |
172 #if defined(OS_WIN) | 179 #if defined(OS_WIN) |
173 registrar_.Add(this, | 180 registrar_.Add(this, |
174 chrome::NOTIFICATION_ASH_SESSION_STARTED, | 181 chrome::NOTIFICATION_ASH_SESSION_STARTED, |
175 content::NotificationService::AllSources()); | 182 content::NotificationService::AllSources()); |
176 registrar_.Add(this, | 183 registrar_.Add(this, |
177 chrome::NOTIFICATION_ASH_SESSION_ENDED, | 184 chrome::NOTIFICATION_ASH_SESSION_ENDED, |
178 content::NotificationService::AllSources()); | 185 content::NotificationService::AllSources()); |
179 #endif | 186 #endif |
180 } | 187 } |
OLD | NEW |