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

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: Simplify calling TopControlsManager::SetupAnimation 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
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 1555 matching lines...) Expand 10 before | Expand all | Expand 10 after
1566 return; 1566 return;
1567 1567
1568 did_show_ = true; 1568 did_show_ = true;
1569 // NOTE: initial_pos_ may still have its default values at this point, but 1569 // 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 1570 // that's okay. It'll be ignored if as_popup is false, or the browser
1571 // process will impose a default position otherwise. 1571 // process will impose a default position otherwise.
1572 Send(new ViewHostMsg_ShowWidget(opener_id_, routing_id_, initial_pos_)); 1572 Send(new ViewHostMsg_ShowWidget(opener_id_, routing_id_, initial_pos_));
1573 SetPendingWindowRect(initial_pos_); 1573 SetPendingWindowRect(initial_pos_);
1574 } 1574 }
1575 1575
1576 void RenderWidget::didProgrammaticallyScroll() {
1577 if (!compositor_)
1578 return;
1579 Send(new ViewHostMsg_DidProgrammaticallyScroll(routing_id_));
1580 }
1581
1576 void RenderWidget::didFocus() { 1582 void RenderWidget::didFocus() {
1577 } 1583 }
1578 1584
1579 void RenderWidget::didBlur() { 1585 void RenderWidget::didBlur() {
1580 } 1586 }
1581 1587
1582 void RenderWidget::DoDeferredClose() { 1588 void RenderWidget::DoDeferredClose() {
1583 Send(new ViewHostMsg_Close(routing_id_)); 1589 Send(new ViewHostMsg_Close(routing_id_));
1584 } 1590 }
1585 1591
(...skipping 724 matching lines...) Expand 10 before | Expand all | Expand 10 after
2310 2316
2311 if (!context->Initialize( 2317 if (!context->Initialize(
2312 attributes, 2318 attributes,
2313 false /* bind generates resources */, 2319 false /* bind generates resources */,
2314 CAUSE_FOR_GPU_LAUNCH_WEBGRAPHICSCONTEXT3DCOMMANDBUFFERIMPL_INITIALIZE) ) 2320 CAUSE_FOR_GPU_LAUNCH_WEBGRAPHICSCONTEXT3DCOMMANDBUFFERIMPL_INITIALIZE) )
2315 return NULL; 2321 return NULL;
2316 return context.release(); 2322 return context.release();
2317 } 2323 }
2318 2324
2319 } // namespace content 2325 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698