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

Side by Side Diff: android_webview/renderer/aw_render_view_ext.h

Issue 475633002: Pass TouchMajor to HitTestResult (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Use const ref Created 6 years, 1 month 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
« no previous file with comments | « android_webview/native/aw_contents.cc ('k') | android_webview/renderer/aw_render_view_ext.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 #ifndef ANDROID_WEBVIEW_RENDERER_AW_RENDER_VIEW_EXT_H_ 5 #ifndef ANDROID_WEBVIEW_RENDERER_AW_RENDER_VIEW_EXT_H_
6 #define ANDROID_WEBVIEW_RENDERER_AW_RENDER_VIEW_EXT_H_ 6 #define ANDROID_WEBVIEW_RENDERER_AW_RENDER_VIEW_EXT_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "base/timer/timer.h" 10 #include "base/timer/timer.h"
11 #include "content/public/renderer/render_view_observer.h" 11 #include "content/public/renderer/render_view_observer.h"
12 #include "third_party/skia/include/core/SkColor.h" 12 #include "third_party/skia/include/core/SkColor.h"
13 #include "ui/gfx/geometry/point_f.h"
14 #include "ui/gfx/geometry/size_f.h"
13 #include "ui/gfx/size.h" 15 #include "ui/gfx/size.h"
14 16
15 namespace blink { 17 namespace blink {
16 18
17 class WebNode; 19 class WebNode;
18 class WebURL; 20 class WebURL;
19 21
20 } // namespace blink 22 } // namespace blink
21 23
22 namespace android_webview { 24 namespace android_webview {
(...skipping 11 matching lines...) Expand all
34 36
35 // RenderView::Observer: 37 // RenderView::Observer:
36 virtual bool OnMessageReceived(const IPC::Message& message) override; 38 virtual bool OnMessageReceived(const IPC::Message& message) override;
37 virtual void FocusedNodeChanged(const blink::WebNode& node) override; 39 virtual void FocusedNodeChanged(const blink::WebNode& node) override;
38 virtual void DidCommitCompositorFrame() override; 40 virtual void DidCommitCompositorFrame() override;
39 virtual void DidUpdateLayout() override; 41 virtual void DidUpdateLayout() override;
40 virtual void Navigate(const GURL& url) override; 42 virtual void Navigate(const GURL& url) override;
41 43
42 void OnDocumentHasImagesRequest(int id); 44 void OnDocumentHasImagesRequest(int id);
43 45
44 void OnDoHitTest(int view_x, int view_y); 46 void OnDoHitTest(const gfx::PointF& touch_center,
47 const gfx::SizeF& touch_area);
45 48
46 void OnSetTextZoomFactor(float zoom_factor); 49 void OnSetTextZoomFactor(float zoom_factor);
47 50
48 void OnResetScrollAndScaleState(); 51 void OnResetScrollAndScaleState();
49 52
50 void OnSetInitialPageScale(double page_scale_factor); 53 void OnSetInitialPageScale(double page_scale_factor);
51 54
52 void OnSetBackgroundColor(SkColor c); 55 void OnSetBackgroundColor(SkColor c);
53 56
54 void UpdatePageScaleFactor(); 57 void UpdatePageScaleFactor();
55 58
56 void CheckContentsSize(); 59 void CheckContentsSize();
57 60
58 bool capture_picture_enabled_; 61 bool capture_picture_enabled_;
59 62
60 float page_scale_factor_; 63 float page_scale_factor_;
61 64
62 gfx::Size last_sent_contents_size_; 65 gfx::Size last_sent_contents_size_;
63 base::OneShotTimer<AwRenderViewExt> check_contents_size_timer_; 66 base::OneShotTimer<AwRenderViewExt> check_contents_size_timer_;
64 67
65 DISALLOW_COPY_AND_ASSIGN(AwRenderViewExt); 68 DISALLOW_COPY_AND_ASSIGN(AwRenderViewExt);
66 }; 69 };
67 70
68 } // namespace android_webview 71 } // namespace android_webview
69 72
70 #endif // ANDROID_WEBVIEW_RENDERER_AW_RENDER_VIEW_EXT_H_ 73 #endif // ANDROID_WEBVIEW_RENDERER_AW_RENDER_VIEW_EXT_H_
OLDNEW
« no previous file with comments | « android_webview/native/aw_contents.cc ('k') | android_webview/renderer/aw_render_view_ext.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698