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

Side by Side Diff: content/renderer/render_widget.cc

Issue 11967015: Hide location bar on WebKit programmatic scroll. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove semicolon from end of message declaration Created 7 years, 8 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/renderer/render_widget.h ('k') | no next file » | 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/renderer/render_widget.h" 5 #include "content/renderer/render_widget.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/command_line.h" 8 #include "base/command_line.h"
9 #include "base/debug/trace_event.h" 9 #include "base/debug/trace_event.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
(...skipping 29 matching lines...) Expand all
40 #include "third_party/WebKit/Source/Platform/chromium/public/WebString.h" 40 #include "third_party/WebKit/Source/Platform/chromium/public/WebString.h"
41 #include "third_party/WebKit/Source/WebKit/chromium/public/WebCursorInfo.h" 41 #include "third_party/WebKit/Source/WebKit/chromium/public/WebCursorInfo.h"
42 #include "third_party/WebKit/Source/WebKit/chromium/public/WebHelperPlugin.h" 42 #include "third_party/WebKit/Source/WebKit/chromium/public/WebHelperPlugin.h"
43 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPagePopup.h" 43 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPagePopup.h"
44 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPopupMenu.h" 44 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPopupMenu.h"
45 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPopupMenuInfo.h" 45 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPopupMenuInfo.h"
46 #include "third_party/WebKit/Source/WebKit/chromium/public/WebRange.h" 46 #include "third_party/WebKit/Source/WebKit/chromium/public/WebRange.h"
47 #include "third_party/WebKit/Source/WebKit/chromium/public/WebScreenInfo.h" 47 #include "third_party/WebKit/Source/WebKit/chromium/public/WebScreenInfo.h"
48 #include "third_party/skia/include/core/SkShader.h" 48 #include "third_party/skia/include/core/SkShader.h"
49 #include "ui/base/ui_base_switches.h" 49 #include "ui/base/ui_base_switches.h"
50 #include "ui/gfx/point.h"
50 #include "ui/gfx/rect_conversions.h" 51 #include "ui/gfx/rect_conversions.h"
51 #include "ui/gfx/size_conversions.h" 52 #include "ui/gfx/size_conversions.h"
52 #include "ui/gfx/skia_util.h" 53 #include "ui/gfx/skia_util.h"
53 #include "ui/gl/gl_switches.h" 54 #include "ui/gl/gl_switches.h"
54 #include "ui/surface/transport_dib.h" 55 #include "ui/surface/transport_dib.h"
55 #include "webkit/compositor_bindings/web_rendering_stats_impl.h" 56 #include "webkit/compositor_bindings/web_rendering_stats_impl.h"
56 #include "webkit/glue/webkit_glue.h" 57 #include "webkit/glue/webkit_glue.h"
57 #include "webkit/gpu/webgraphicscontext3d_in_process_impl.h" 58 #include "webkit/gpu/webgraphicscontext3d_in_process_impl.h"
58 #include "webkit/plugins/npapi/webplugin.h" 59 #include "webkit/plugins/npapi/webplugin.h"
59 #include "webkit/plugins/ppapi/ppapi_plugin_instance.h" 60 #include "webkit/plugins/ppapi/ppapi_plugin_instance.h"
(...skipping 1506 matching lines...) Expand 10 before | Expand all | Expand 10 after
1566 return; 1567 return;
1567 1568
1568 did_show_ = true; 1569 did_show_ = true;
1569 // NOTE: initial_pos_ may still have its default values at this point, but 1570 // NOTE: initial_pos_ may still have its default values at this point, but
1570 // that's okay. It'll be ignored if as_popup is false, or the browser 1571 // that's okay. It'll be ignored if as_popup is false, or the browser
1571 // process will impose a default position otherwise. 1572 // process will impose a default position otherwise.
1572 Send(new ViewHostMsg_ShowWidget(opener_id_, routing_id_, initial_pos_)); 1573 Send(new ViewHostMsg_ShowWidget(opener_id_, routing_id_, initial_pos_));
1573 SetPendingWindowRect(initial_pos_); 1574 SetPendingWindowRect(initial_pos_);
1574 } 1575 }
1575 1576
1577 void RenderWidget::didProgrammaticallyScroll(
1578 const WebKit::WebPoint& scrollPoint) {
1579 if (!compositor_)
1580 return;
1581 Send(new ViewHostMsg_DidProgrammaticallyScroll(
1582 routing_id_, gfx::Point(scrollPoint.x, scrollPoint.y)));
1583 }
1584
1576 void RenderWidget::didFocus() { 1585 void RenderWidget::didFocus() {
1577 } 1586 }
1578 1587
1579 void RenderWidget::didBlur() { 1588 void RenderWidget::didBlur() {
1580 } 1589 }
1581 1590
1582 void RenderWidget::DoDeferredClose() { 1591 void RenderWidget::DoDeferredClose() {
1583 Send(new ViewHostMsg_Close(routing_id_)); 1592 Send(new ViewHostMsg_Close(routing_id_));
1584 } 1593 }
1585 1594
(...skipping 724 matching lines...) Expand 10 before | Expand all | Expand 10 after
2310 2319
2311 if (!context->Initialize( 2320 if (!context->Initialize(
2312 attributes, 2321 attributes,
2313 false /* bind generates resources */, 2322 false /* bind generates resources */,
2314 CAUSE_FOR_GPU_LAUNCH_WEBGRAPHICSCONTEXT3DCOMMANDBUFFERIMPL_INITIALIZE) ) 2323 CAUSE_FOR_GPU_LAUNCH_WEBGRAPHICSCONTEXT3DCOMMANDBUFFERIMPL_INITIALIZE) )
2315 return NULL; 2324 return NULL;
2316 return context.release(); 2325 return context.release();
2317 } 2326 }
2318 2327
2319 } // namespace content 2328 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/render_widget.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698