| 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 352 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |