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

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

Issue 23899004: Use contents size for android_webview layout. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 3 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/public/renderer/render_view_observer.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_view_impl.h" 5 #include "content/renderer/render_view_impl.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <cmath> 8 #include <cmath>
9 9
10 #include "base/auto_reset.h" 10 #include "base/auto_reset.h"
(...skipping 2798 matching lines...) Expand 10 before | Expand all | Expand 10 after
2809 Send(new ViewHostMsg_FocusedNodeChanged(routing_id_, IsEditableNode(node))); 2809 Send(new ViewHostMsg_FocusedNodeChanged(routing_id_, IsEditableNode(node)));
2810 2810
2811 FOR_EACH_OBSERVER(RenderViewObserver, observers_, FocusedNodeChanged(node)); 2811 FOR_EACH_OBSERVER(RenderViewObserver, observers_, FocusedNodeChanged(node));
2812 } 2812 }
2813 2813
2814 void RenderViewImpl::numberOfWheelEventHandlersChanged(unsigned num_handlers) { 2814 void RenderViewImpl::numberOfWheelEventHandlersChanged(unsigned num_handlers) {
2815 Send(new ViewHostMsg_DidChangeNumWheelEvents(routing_id_, num_handlers)); 2815 Send(new ViewHostMsg_DidChangeNumWheelEvents(routing_id_, num_handlers));
2816 } 2816 }
2817 2817
2818 void RenderViewImpl::didUpdateLayout() { 2818 void RenderViewImpl::didUpdateLayout() {
2819 FOR_EACH_OBSERVER(RenderViewObserver, observers_, DidUpdateLayout());
2820
2819 // We don't always want to set up a timer, only if we've been put in that 2821 // We don't always want to set up a timer, only if we've been put in that
2820 // mode by getting a |ViewMsg_EnablePreferredSizeChangedMode| 2822 // mode by getting a |ViewMsg_EnablePreferredSizeChangedMode|
2821 // message. 2823 // message.
2822 if (!send_preferred_size_changes_ || !webview()) 2824 if (!send_preferred_size_changes_ || !webview())
2823 return; 2825 return;
2824 2826
2825 if (check_preferred_size_timer_.IsRunning()) 2827 if (check_preferred_size_timer_.IsRunning())
2826 return; 2828 return;
2827 check_preferred_size_timer_.Start(FROM_HERE, 2829 check_preferred_size_timer_.Start(FROM_HERE,
2828 TimeDelta::FromMilliseconds(0), this, 2830 TimeDelta::FromMilliseconds(0), this,
(...skipping 3699 matching lines...) Expand 10 before | Expand all | Expand 10 after
6528 for (size_t i = 0; i < icon_urls.size(); i++) { 6530 for (size_t i = 0; i < icon_urls.size(); i++) {
6529 WebURL url = icon_urls[i].iconURL(); 6531 WebURL url = icon_urls[i].iconURL();
6530 if (!url.isEmpty()) 6532 if (!url.isEmpty())
6531 urls.push_back(FaviconURL(url, 6533 urls.push_back(FaviconURL(url,
6532 ToFaviconType(icon_urls[i].iconType()))); 6534 ToFaviconType(icon_urls[i].iconType())));
6533 } 6535 }
6534 SendUpdateFaviconURL(urls); 6536 SendUpdateFaviconURL(urls);
6535 } 6537 }
6536 6538
6537 } // namespace content 6539 } // namespace content
OLDNEW
« no previous file with comments | « content/public/renderer/render_view_observer.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698