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

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

Issue 9221014: aura: Gesture event plumbing (skeleton). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: copyright Created 8 years, 11 months 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 777 matching lines...) Expand 10 before | Expand all | Expand 10 after
788 788
789 // Forward the touch event only if a touch point was updated. 789 // Forward the touch event only if a touch point was updated.
790 if (point) { 790 if (point) {
791 host_->ForwardTouchEvent(touch_event_); 791 host_->ForwardTouchEvent(touch_event_);
792 UpdateWebTouchEventAfterDispatch(&touch_event_, point); 792 UpdateWebTouchEventAfterDispatch(&touch_event_, point);
793 } 793 }
794 794
795 return DecideTouchStatus(touch_event_, point); 795 return DecideTouchStatus(touch_event_, point);
796 } 796 }
797 797
798 ui::GestureStatus RenderWidgetHostViewAura::OnGestureEvent(
799 aura::GestureEvent* event) {
800 // TODO(sad):
801 return ui::GESTURE_STATUS_UNKNOWN;
802 }
803
798 bool RenderWidgetHostViewAura::CanFocus() { 804 bool RenderWidgetHostViewAura::CanFocus() {
799 return popup_type_ == WebKit::WebPopupTypeNone; 805 return popup_type_ == WebKit::WebPopupTypeNone;
800 } 806 }
801 807
802 void RenderWidgetHostViewAura::OnCaptureLost() { 808 void RenderWidgetHostViewAura::OnCaptureLost() {
803 host_->LostCapture(); 809 host_->LostCapture();
804 } 810 }
805 811
806 void RenderWidgetHostViewAura::OnPaint(gfx::Canvas* canvas) { 812 void RenderWidgetHostViewAura::OnPaint(gfx::Canvas* canvas) {
807 if (!window_->IsVisible()) 813 if (!window_->IsVisible())
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
911 // static 917 // static
912 void RenderWidgetHostView::GetDefaultScreenInfo( 918 void RenderWidgetHostView::GetDefaultScreenInfo(
913 WebKit::WebScreenInfo* results) { 919 WebKit::WebScreenInfo* results) {
914 const gfx::Size size = gfx::Screen::GetPrimaryMonitorSize(); 920 const gfx::Size size = gfx::Screen::GetPrimaryMonitorSize();
915 results->rect = WebKit::WebRect(0, 0, size.width(), size.height()); 921 results->rect = WebKit::WebRect(0, 0, size.width(), size.height());
916 results->availableRect = results->rect; 922 results->availableRect = results->rect;
917 // TODO(derat): Don't hardcode this? 923 // TODO(derat): Don't hardcode this?
918 results->depth = 24; 924 results->depth = 24;
919 results->depthPerComponent = 8; 925 results->depthPerComponent = 8;
920 } 926 }
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