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

Side by Side Diff: content/browser/web_contents/aura/overscroll_navigation_overlay.cc

Issue 273523007: Dispatch geolocation IPCs on the UI thread. Aside from simplifying the code to avoid a lot of threa… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: sync Created 6 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/web_contents/aura/overscroll_navigation_overlay.h" 5 #include "content/browser/web_contents/aura/overscroll_navigation_overlay.h"
6 6
7 #include "content/browser/frame_host/navigation_entry_impl.h" 7 #include "content/browser/frame_host/navigation_entry_impl.h"
8 #include "content/browser/renderer_host/render_view_host_impl.h" 8 #include "content/browser/renderer_host/render_view_host_impl.h"
9 #include "content/browser/web_contents/aura/image_window_delegate.h" 9 #include "content/browser/web_contents/aura/image_window_delegate.h"
10 #include "content/browser/web_contents/web_contents_impl.h" 10 #include "content/browser/web_contents/web_contents_impl.h"
11 #include "content/common/view_messages.h" 11 #include "content/common/view_messages.h"
12 #include "content/public/browser/browser_thread.h"
12 #include "content/public/browser/render_widget_host_view.h" 13 #include "content/public/browser/render_widget_host_view.h"
13 #include "ui/aura/window.h" 14 #include "ui/aura/window.h"
14 #include "ui/compositor/layer.h" 15 #include "ui/compositor/layer.h"
15 #include "ui/compositor/layer_animation_observer.h" 16 #include "ui/compositor/layer_animation_observer.h"
16 #include "ui/compositor/scoped_layer_animation_settings.h" 17 #include "ui/compositor/scoped_layer_animation_settings.h"
17 #include "ui/gfx/canvas.h" 18 #include "ui/gfx/canvas.h"
18 #include "ui/gfx/image/image_png_rep.h" 19 #include "ui/gfx/image/image_png_rep.h"
19 #include "ui/gfx/image/image_skia.h" 20 #include "ui/gfx/image/image_skia.h"
20 21
21 namespace content { 22 namespace content {
(...skipping 319 matching lines...) Expand 10 before | Expand all | Expand 10 after
341 bool OverscrollNavigationOverlay::OnMessageReceived( 342 bool OverscrollNavigationOverlay::OnMessageReceived(
342 const IPC::Message& message) { 343 const IPC::Message& message) {
343 CHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); 344 CHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
344 IPC_BEGIN_MESSAGE_MAP(OverscrollNavigationOverlay, message) 345 IPC_BEGIN_MESSAGE_MAP(OverscrollNavigationOverlay, message)
345 IPC_MESSAGE_HANDLER(ViewHostMsg_UpdateRect, OnUpdateRect) 346 IPC_MESSAGE_HANDLER(ViewHostMsg_UpdateRect, OnUpdateRect)
346 IPC_END_MESSAGE_MAP() 347 IPC_END_MESSAGE_MAP()
347 return false; 348 return false;
348 } 349 }
349 350
350 } // namespace content 351 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/web_contents/aura/gesture_nav_simple.cc ('k') | content/browser/web_contents/web_contents_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698