OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 "content/browser/renderer_host/render_widget_host_view_aura.h" | 5 #include "content/browser/renderer_host/render_widget_host_view_aura.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 #include "content/browser/renderer_host/backing_store_skia.h" | 8 #include "content/browser/renderer_host/backing_store_skia.h" |
9 #include "content/browser/renderer_host/render_widget_host.h" | 9 #include "content/browser/renderer_host/render_widget_host.h" |
10 #include "content/browser/renderer_host/web_input_event_aura.h" | 10 #include "content/browser/renderer_host/web_input_event_aura.h" |
(...skipping 513 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
524 UpdateWebTouchEventAfterDispatch(&touch_event_, point); | 524 UpdateWebTouchEventAfterDispatch(&touch_event_, point); |
525 } | 525 } |
526 | 526 |
527 return DecideTouchStatus(touch_event_, point); | 527 return DecideTouchStatus(touch_event_, point); |
528 } | 528 } |
529 | 529 |
530 bool RenderWidgetHostViewAura::ShouldActivate(aura::Event* event) { | 530 bool RenderWidgetHostViewAura::ShouldActivate(aura::Event* event) { |
531 return false; | 531 return false; |
532 } | 532 } |
533 | 533 |
| 534 bool RenderWidgetHostViewAura::CanFocus() { |
| 535 return popup_type_ == WebKit::WebPopupTypeNone; |
| 536 } |
| 537 |
534 void RenderWidgetHostViewAura::OnActivated() { | 538 void RenderWidgetHostViewAura::OnActivated() { |
535 } | 539 } |
536 | 540 |
537 void RenderWidgetHostViewAura::OnLostActive() { | 541 void RenderWidgetHostViewAura::OnLostActive() { |
538 } | 542 } |
539 | 543 |
540 void RenderWidgetHostViewAura::OnCaptureLost() { | 544 void RenderWidgetHostViewAura::OnCaptureLost() { |
541 host_->LostCapture(); | 545 host_->LostCapture(); |
542 } | 546 } |
543 | 547 |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
604 // static | 608 // static |
605 void RenderWidgetHostView::GetDefaultScreenInfo( | 609 void RenderWidgetHostView::GetDefaultScreenInfo( |
606 WebKit::WebScreenInfo* results) { | 610 WebKit::WebScreenInfo* results) { |
607 const gfx::Size size = gfx::Screen::GetPrimaryMonitorSize(); | 611 const gfx::Size size = gfx::Screen::GetPrimaryMonitorSize(); |
608 results->rect = WebKit::WebRect(0, 0, size.width(), size.height()); | 612 results->rect = WebKit::WebRect(0, 0, size.width(), size.height()); |
609 results->availableRect = results->rect; | 613 results->availableRect = results->rect; |
610 // TODO(derat): Don't hardcode this? | 614 // TODO(derat): Don't hardcode this? |
611 results->depth = 24; | 615 results->depth = 24; |
612 results->depthPerComponent = 8; | 616 results->depthPerComponent = 8; |
613 } | 617 } |
OLD | NEW |