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

Side by Side Diff: content/browser/android/content_view_core_impl.h

Issue 11793003: Relands: Telemetry: hooks "chrome.gpuBenchmarking.smoothScrollBy" with java on android. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: moves functionality out of content/port Created 7 years, 7 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
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 CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ 5 #ifndef CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_
6 #define CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ 6 #define CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/android/jni_android.h"
10 #include "base/android/jni_helper.h" 11 #include "base/android/jni_helper.h"
11 #include "base/basictypes.h" 12 #include "base/basictypes.h"
12 #include "base/compiler_specific.h" 13 #include "base/compiler_specific.h"
13 #include "base/i18n/rtl.h" 14 #include "base/i18n/rtl.h"
14 #include "base/memory/scoped_ptr.h" 15 #include "base/memory/scoped_ptr.h"
15 #include "base/process.h" 16 #include "base/process.h"
16 #include "content/browser/renderer_host/render_widget_host_view_android.h" 17 #include "content/browser/renderer_host/render_widget_host_view_android.h"
17 #include "content/browser/web_contents/web_contents_impl.h" 18 #include "content/browser/web_contents/web_contents_impl.h"
18 #include "content/public/browser/android/content_view_core.h" 19 #include "content/public/browser/android/content_view_core.h"
19 #include "content/public/browser/notification_observer.h" 20 #include "content/public/browser/notification_observer.h"
(...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after
260 const ViewHostMsg_SelectionBounds_Params& params); 261 const ViewHostMsg_SelectionBounds_Params& params);
261 262
262 void StartContentIntent(const GURL& content_url); 263 void StartContentIntent(const GURL& content_url);
263 264
264 // Shows the disambiguation popup 265 // Shows the disambiguation popup
265 // |target_rect| --> window coordinates which |zoomed_bitmap| represents 266 // |target_rect| --> window coordinates which |zoomed_bitmap| represents
266 // |zoomed_bitmap| --> magnified image of potential touch targets 267 // |zoomed_bitmap| --> magnified image of potential touch targets
267 void ShowDisambiguationPopup( 268 void ShowDisambiguationPopup(
268 const gfx::Rect& target_rect, const SkBitmap& zoomed_bitmap); 269 const gfx::Rect& target_rect, const SkBitmap& zoomed_bitmap);
269 270
271 // Creates a java-side smooth scroller. Used by
272 // chrome.gpuBenchmarking.smoothScrollBy.
273 base::android::ScopedJavaLocalRef<jobject> CreateSmoothScroller(
274 bool scroll_down, int mouse_event_x, int mouse_event_y);
275
270 void RequestExternalVideoSurface(int player_id); 276 void RequestExternalVideoSurface(int player_id);
271 void NotifyGeometryChange(int player_id, const gfx::RectF& rect); 277 void NotifyGeometryChange(int player_id, const gfx::RectF& rect);
272 278
273 // -------------------------------------------------------------------------- 279 // --------------------------------------------------------------------------
274 // Methods called from native code 280 // Methods called from native code
275 // -------------------------------------------------------------------------- 281 // --------------------------------------------------------------------------
276 282
277 gfx::Size GetPhysicalBackingSize() const; 283 gfx::Size GetPhysicalBackingSize() const;
278 gfx::Size GetViewportSizeDip() const; 284 gfx::Size GetViewportSizeDip() const;
279 gfx::Size GetViewportSizeOffsetDip() const; 285 gfx::Size GetViewportSizeOffsetDip() const;
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
353 scoped_ptr<SyncInputEventFilter> input_event_filter_; 359 scoped_ptr<SyncInputEventFilter> input_event_filter_;
354 360
355 DISALLOW_COPY_AND_ASSIGN(ContentViewCoreImpl); 361 DISALLOW_COPY_AND_ASSIGN(ContentViewCoreImpl);
356 }; 362 };
357 363
358 bool RegisterContentViewCore(JNIEnv* env); 364 bool RegisterContentViewCore(JNIEnv* env);
359 365
360 } // namespace content 366 } // namespace content
361 367
362 #endif // CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ 368 #endif // CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698