OLD | NEW |
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 360 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
371 } | 371 } |
372 | 372 |
373 void NativeAppWindowViews::UpdateShape(scoped_ptr<SkRegion> region) { | 373 void NativeAppWindowViews::UpdateShape(scoped_ptr<SkRegion> region) { |
374 // Stub implementation. See also ChromeNativeAppWindowViews. | 374 // Stub implementation. See also ChromeNativeAppWindowViews. |
375 } | 375 } |
376 | 376 |
377 void NativeAppWindowViews::SetInterceptAllKeys(bool want_all_keys) { | 377 void NativeAppWindowViews::SetInterceptAllKeys(bool want_all_keys) { |
378 // Stub implementation. See also ChromeNativeAppWindowViews. | 378 // Stub implementation. See also ChromeNativeAppWindowViews. |
379 } | 379 } |
380 | 380 |
| 381 bool NativeAppWindowViews::PreHandleKeyboardEvent( |
| 382 content::WebContents* source, |
| 383 const content::NativeWebKeyboardEvent& event, |
| 384 bool* is_keyboard_shortcut) { |
| 385 return false; |
| 386 } |
| 387 |
381 void NativeAppWindowViews::HandleKeyboardEvent( | 388 void NativeAppWindowViews::HandleKeyboardEvent( |
382 const content::NativeWebKeyboardEvent& event) { | 389 const content::NativeWebKeyboardEvent& event) { |
383 unhandled_keyboard_event_handler_.HandleKeyboardEvent(event, | 390 unhandled_keyboard_event_handler_.HandleKeyboardEvent(event, |
384 GetFocusManager()); | 391 GetFocusManager()); |
385 } | 392 } |
386 | 393 |
387 bool NativeAppWindowViews::IsFrameless() const { | 394 bool NativeAppWindowViews::IsFrameless() const { |
388 return frameless_; | 395 return frameless_; |
389 } | 396 } |
390 | 397 |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
442 | 449 |
443 bool NativeAppWindowViews::CanHaveAlphaEnabled() const { | 450 bool NativeAppWindowViews::CanHaveAlphaEnabled() const { |
444 return widget_->IsTranslucentWindowOpacitySupported(); | 451 return widget_->IsTranslucentWindowOpacitySupported(); |
445 } | 452 } |
446 | 453 |
447 void NativeAppWindowViews::SetVisibleOnAllWorkspaces(bool always_visible) { | 454 void NativeAppWindowViews::SetVisibleOnAllWorkspaces(bool always_visible) { |
448 widget_->SetVisibleOnAllWorkspaces(always_visible); | 455 widget_->SetVisibleOnAllWorkspaces(always_visible); |
449 } | 456 } |
450 | 457 |
451 } // namespace native_app_window | 458 } // namespace native_app_window |
OLD | NEW |