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

Side by Side Diff: content/browser/renderer_host/render_widget_host_view_aura.cc

Issue 8770011: aura: Ask the WindowDelegate before a Window is Focus()ed. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 9 years 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 | Annotate | Revision Log
« no previous file with comments | « content/browser/renderer_host/render_widget_host_view_aura.h ('k') | ui/aura/demo/demo_main.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 509 matching lines...) Expand 10 before | Expand all | Expand 10 after
520 520
521 // Forward the touch event only if a touch point was updated. 521 // Forward the touch event only if a touch point was updated.
522 if (point) { 522 if (point) {
523 host_->ForwardTouchEvent(touch_event_); 523 host_->ForwardTouchEvent(touch_event_);
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::CanFocus() {
531 return popup_type_ == WebKit::WebPopupTypeNone;
532 }
533
530 bool RenderWidgetHostViewAura::ShouldActivate(aura::Event* event) { 534 bool RenderWidgetHostViewAura::ShouldActivate(aura::Event* event) {
531 return false; 535 return false;
532 } 536 }
533 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
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 }
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_widget_host_view_aura.h ('k') | ui/aura/demo/demo_main.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698