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

Side by Side Diff: extensions/shell/browser/shell_native_app_window.cc

Issue 944123003: Hack webapp to request keyboard events on connection. Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Hacked up chromoting client and using mouse lock instead of keyboard lock for bubble. Created 5 years, 10 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "extensions/shell/browser/shell_native_app_window.h" 5 #include "extensions/shell/browser/shell_native_app_window.h"
6 6
7 #include "extensions/shell/browser/desktop_controller.h" 7 #include "extensions/shell/browser/desktop_controller.h"
8 #include "third_party/skia/include/core/SkRegion.h" 8 #include "third_party/skia/include/core/SkRegion.h"
9 #include "ui/gfx/geometry/insets.h" 9 #include "ui/gfx/geometry/insets.h"
10 #include "ui/gfx/geometry/point.h" 10 #include "ui/gfx/geometry/point.h"
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 142
143 void ShellNativeAppWindow::SetInterceptAllKeys(bool want_all_keys) { 143 void ShellNativeAppWindow::SetInterceptAllKeys(bool want_all_keys) {
144 NOTIMPLEMENTED(); 144 NOTIMPLEMENTED();
145 } 145 }
146 146
147 void ShellNativeAppWindow::HandleKeyboardEvent( 147 void ShellNativeAppWindow::HandleKeyboardEvent(
148 const content::NativeWebKeyboardEvent& event) { 148 const content::NativeWebKeyboardEvent& event) {
149 // No special handling. The WebContents will handle it. 149 // No special handling. The WebContents will handle it.
150 } 150 }
151 151
152 bool ShellNativeAppWindow::PreHandleKeyboardEvent(
153 content::WebContents* source,
154 const content::NativeWebKeyboardEvent& event,
155 bool* is_keyboard_shortcut) {
156 // No special handling. The WebContents will handle it.
157 return false;
158 }
159
152 bool ShellNativeAppWindow::IsFrameless() const { 160 bool ShellNativeAppWindow::IsFrameless() const {
153 NOTIMPLEMENTED(); 161 NOTIMPLEMENTED();
154 return false; 162 return false;
155 } 163 }
156 164
157 bool ShellNativeAppWindow::HasFrameColor() const { 165 bool ShellNativeAppWindow::HasFrameColor() const {
158 return false; 166 return false;
159 } 167 }
160 168
161 SkColor ShellNativeAppWindow::ActiveFrameColor() const { 169 SkColor ShellNativeAppWindow::ActiveFrameColor() const {
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
201 void ShellNativeAppWindow::SetVisibleOnAllWorkspaces(bool always_visible) { 209 void ShellNativeAppWindow::SetVisibleOnAllWorkspaces(bool always_visible) {
202 NOTIMPLEMENTED(); 210 NOTIMPLEMENTED();
203 } 211 }
204 212
205 bool ShellNativeAppWindow::CanHaveAlphaEnabled() const { 213 bool ShellNativeAppWindow::CanHaveAlphaEnabled() const {
206 // No background to display if the window was transparent. 214 // No background to display if the window was transparent.
207 return false; 215 return false;
208 } 216 }
209 217
210 } // namespace extensions 218 } // namespace extensions
OLDNEW
« no previous file with comments | « extensions/shell/browser/shell_native_app_window.h ('k') | remoting/webapp/crd/js/client_plugin_impl.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698