| 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 356 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 367 } | 367 } |
| 368 | 368 |
| 369 SkRegion* NativeAppWindowViews::GetDraggableRegion() { | 369 SkRegion* NativeAppWindowViews::GetDraggableRegion() { |
| 370 return draggable_region_.get(); | 370 return draggable_region_.get(); |
| 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) { |
| 378 // Stub implementation. See also ChromeNativeAppWindowViews. |
| 379 } |
| 380 |
| 377 void NativeAppWindowViews::HandleKeyboardEvent( | 381 void NativeAppWindowViews::HandleKeyboardEvent( |
| 378 const content::NativeWebKeyboardEvent& event) { | 382 const content::NativeWebKeyboardEvent& event) { |
| 379 unhandled_keyboard_event_handler_.HandleKeyboardEvent(event, | 383 unhandled_keyboard_event_handler_.HandleKeyboardEvent(event, |
| 380 GetFocusManager()); | 384 GetFocusManager()); |
| 381 } | 385 } |
| 382 | 386 |
| 383 bool NativeAppWindowViews::IsFrameless() const { | 387 bool NativeAppWindowViews::IsFrameless() const { |
| 384 return frameless_; | 388 return frameless_; |
| 385 } | 389 } |
| 386 | 390 |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 438 | 442 |
| 439 bool NativeAppWindowViews::CanHaveAlphaEnabled() const { | 443 bool NativeAppWindowViews::CanHaveAlphaEnabled() const { |
| 440 return widget_->IsTranslucentWindowOpacitySupported(); | 444 return widget_->IsTranslucentWindowOpacitySupported(); |
| 441 } | 445 } |
| 442 | 446 |
| 443 void NativeAppWindowViews::SetVisibleOnAllWorkspaces(bool always_visible) { | 447 void NativeAppWindowViews::SetVisibleOnAllWorkspaces(bool always_visible) { |
| 444 widget_->SetVisibleOnAllWorkspaces(always_visible); | 448 widget_->SetVisibleOnAllWorkspaces(always_visible); |
| 445 } | 449 } |
| 446 | 450 |
| 447 } // namespace native_app_window | 451 } // namespace native_app_window |
| OLD | NEW |