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

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

Issue 297123002: API proposal for chrome.app.window to intercept all keys. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Sync to TOT Created 6 years 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 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
133 133
134 SkRegion* ShellNativeAppWindow::GetDraggableRegion() { 134 SkRegion* ShellNativeAppWindow::GetDraggableRegion() {
135 NOTIMPLEMENTED(); 135 NOTIMPLEMENTED();
136 return NULL; 136 return NULL;
137 } 137 }
138 138
139 void ShellNativeAppWindow::UpdateShape(scoped_ptr<SkRegion> region) { 139 void ShellNativeAppWindow::UpdateShape(scoped_ptr<SkRegion> region) {
140 NOTIMPLEMENTED(); 140 NOTIMPLEMENTED();
141 } 141 }
142 142
143 void ShellNativeAppWindow::SetInterceptAllKeys(bool want_all_keys) {
144 NOTIMPLEMENTED();
145 }
146
143 void ShellNativeAppWindow::HandleKeyboardEvent( 147 void ShellNativeAppWindow::HandleKeyboardEvent(
144 const content::NativeWebKeyboardEvent& event) { 148 const content::NativeWebKeyboardEvent& event) {
145 // No special handling. The WebContents will handle it. 149 // No special handling. The WebContents will handle it.
146 } 150 }
147 151
148 bool ShellNativeAppWindow::IsFrameless() const { 152 bool ShellNativeAppWindow::IsFrameless() const {
149 NOTIMPLEMENTED(); 153 NOTIMPLEMENTED();
150 return false; 154 return false;
151 } 155 }
152 156
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
197 void ShellNativeAppWindow::SetVisibleOnAllWorkspaces(bool always_visible) { 201 void ShellNativeAppWindow::SetVisibleOnAllWorkspaces(bool always_visible) {
198 NOTIMPLEMENTED(); 202 NOTIMPLEMENTED();
199 } 203 }
200 204
201 bool ShellNativeAppWindow::CanHaveAlphaEnabled() const { 205 bool ShellNativeAppWindow::CanHaveAlphaEnabled() const {
202 // No background to display if the window was transparent. 206 // No background to display if the window was transparent.
203 return false; 207 return false;
204 } 208 }
205 209
206 } // namespace extensions 210 } // namespace extensions
OLDNEW
« no previous file with comments | « extensions/shell/browser/shell_native_app_window.h ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698