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

Side by Side Diff: extensions/components/native_app_window/native_app_window_views.cc

Issue 1316013004: Remove "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 5 years, 3 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/components/native_app_window/native_app_window_views.h" 5 #include "extensions/components/native_app_window/native_app_window_views.h"
6 6
7 #include "base/threading/sequenced_worker_pool.h" 7 #include "base/threading/sequenced_worker_pool.h"
8 #include "content/public/browser/render_view_host.h" 8 #include "content/public/browser/render_view_host.h"
9 #include "content/public/browser/render_widget_host_view.h" 9 #include "content/public/browser/render_widget_host_view.h"
10 #include "content/public/browser/web_contents.h" 10 #include "content/public/browser/web_contents.h"
(...skipping 352 matching lines...) Expand 10 before | Expand all | Expand 10 after
363 } 363 }
364 364
365 SkRegion* NativeAppWindowViews::GetDraggableRegion() { 365 SkRegion* NativeAppWindowViews::GetDraggableRegion() {
366 return draggable_region_.get(); 366 return draggable_region_.get();
367 } 367 }
368 368
369 void NativeAppWindowViews::UpdateShape(scoped_ptr<SkRegion> region) { 369 void NativeAppWindowViews::UpdateShape(scoped_ptr<SkRegion> region) {
370 // Stub implementation. See also ChromeNativeAppWindowViews. 370 // Stub implementation. See also ChromeNativeAppWindowViews.
371 } 371 }
372 372
373 void NativeAppWindowViews::SetInterceptAllKeys(bool want_all_keys) {
374 // Stub implementation. See also ChromeNativeAppWindowViews.
375 }
376
377 void NativeAppWindowViews::HandleKeyboardEvent( 373 void NativeAppWindowViews::HandleKeyboardEvent(
378 const content::NativeWebKeyboardEvent& event) { 374 const content::NativeWebKeyboardEvent& event) {
379 unhandled_keyboard_event_handler_.HandleKeyboardEvent(event, 375 unhandled_keyboard_event_handler_.HandleKeyboardEvent(event,
380 GetFocusManager()); 376 GetFocusManager());
381 } 377 }
382 378
383 bool NativeAppWindowViews::IsFrameless() const { 379 bool NativeAppWindowViews::IsFrameless() const {
384 return frameless_; 380 return frameless_;
385 } 381 }
386 382
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
435 431
436 bool NativeAppWindowViews::CanHaveAlphaEnabled() const { 432 bool NativeAppWindowViews::CanHaveAlphaEnabled() const {
437 return widget_->IsTranslucentWindowOpacitySupported(); 433 return widget_->IsTranslucentWindowOpacitySupported();
438 } 434 }
439 435
440 void NativeAppWindowViews::SetVisibleOnAllWorkspaces(bool always_visible) { 436 void NativeAppWindowViews::SetVisibleOnAllWorkspaces(bool always_visible) {
441 widget_->SetVisibleOnAllWorkspaces(always_visible); 437 widget_->SetVisibleOnAllWorkspaces(always_visible);
442 } 438 }
443 439
444 } // namespace native_app_window 440 } // namespace native_app_window
OLDNEW
« no previous file with comments | « extensions/components/native_app_window/native_app_window_views.h ('k') | extensions/shell/browser/shell_native_app_window.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698