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

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: 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
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 2797 matching lines...) Expand 10 before | Expand all | Expand 10 after
2808 Send(new ViewHostMsg_FocusedNodeChanged(routing_id_, IsEditableNode(node))); 2808 Send(new ViewHostMsg_FocusedNodeChanged(routing_id_, IsEditableNode(node)));
2809 2809
2810 FOR_EACH_OBSERVER(RenderViewObserver, observers_, FocusedNodeChanged(node)); 2810 FOR_EACH_OBSERVER(RenderViewObserver, observers_, FocusedNodeChanged(node));
2811 } 2811 }
2812 2812
2813 void RenderViewImpl::numberOfWheelEventHandlersChanged(unsigned num_handlers) { 2813 void RenderViewImpl::numberOfWheelEventHandlersChanged(unsigned num_handlers) {
2814 Send(new ViewHostMsg_DidChangeNumWheelEvents(routing_id_, num_handlers)); 2814 Send(new ViewHostMsg_DidChangeNumWheelEvents(routing_id_, num_handlers));
2815 } 2815 }
2816 2816
2817 void RenderViewImpl::didUpdateLayout() { 2817 void RenderViewImpl::didUpdateLayout() {
2818 FOR_EACH_OBSERVER(RenderViewObserver, observers_, DidUpdateLayout());
2819
2818 // We don't always want to set up a timer, only if we've been put in that 2820 // We don't always want to set up a timer, only if we've been put in that
2819 // mode by getting a |ViewMsg_EnablePreferredSizeChangedMode| 2821 // mode by getting a |ViewMsg_EnablePreferredSizeChangedMode|
2820 // message. 2822 // message.
2821 if (!send_preferred_size_changes_ || !webview()) 2823 if (!send_preferred_size_changes_ || !webview())
2822 return; 2824 return;
2823 2825
2824 if (check_preferred_size_timer_.IsRunning()) 2826 if (check_preferred_size_timer_.IsRunning())
2825 return; 2827 return;
2826 check_preferred_size_timer_.Start(FROM_HERE, 2828 check_preferred_size_timer_.Start(FROM_HERE,
2827 TimeDelta::FromMilliseconds(0), this, 2829 TimeDelta::FromMilliseconds(0), this,
(...skipping 3689 matching lines...) Expand 10 before | Expand all | Expand 10 after
6517 for (size_t i = 0; i < icon_urls.size(); i++) { 6519 for (size_t i = 0; i < icon_urls.size(); i++) {
6518 WebURL url = icon_urls[i].iconURL(); 6520 WebURL url = icon_urls[i].iconURL();
6519 if (!url.isEmpty()) 6521 if (!url.isEmpty())
6520 urls.push_back(FaviconURL(url, 6522 urls.push_back(FaviconURL(url,
6521 ToFaviconType(icon_urls[i].iconType()))); 6523 ToFaviconType(icon_urls[i].iconType())));
6522 } 6524 }
6523 SendUpdateFaviconURL(urls); 6525 SendUpdateFaviconURL(urls);
6524 } 6526 }
6525 6527
6526 } // namespace content 6528 } // namespace content
OLDNEW
« android_webview/native/aw_settings.cc ('K') | « 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