diff options
author | abarth@chromium.org <abarth@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-06-24 18:28:26 +0000 |
---|---|---|
committer | abarth@chromium.org <abarth@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-06-24 18:28:26 +0000 |
commit | f5462fdb35a3e41308c49b3308d59ab94f52bb58 (patch) | |
tree | 0b68904dd5d14ac18d7b6a645de3857b9d3460fd /chrome/renderer/chrome_render_view_observer.cc | |
parent | 1c73d92f5f54be1739a18ad26e6cce1cea4772be (diff) | |
download | chromium_src-f5462fdb35a3e41308c49b3308d59ab94f52bb58.zip chromium_src-f5462fdb35a3e41308c49b3308d59ab94f52bb58.tar.gz chromium_src-f5462fdb35a3e41308c49b3308d59ab94f52bb58.tar.bz2 |
Update chrome/renderer to reflect WEBKIT_FRAME_TO_DOCUMENT_API_MOVE
Review URL: http://codereview.chromium.org/7241013
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@90391 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/renderer/chrome_render_view_observer.cc')
-rw-r--r-- | chrome/renderer/chrome_render_view_observer.cc | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/chrome/renderer/chrome_render_view_observer.cc b/chrome/renderer/chrome_render_view_observer.cc index e24330e..141fb07 100644 --- a/chrome/renderer/chrome_render_view_observer.cc +++ b/chrome/renderer/chrome_render_view_observer.cc @@ -30,6 +30,7 @@ #include "skia/ext/platform_canvas.h" #include "third_party/WebKit/Source/WebKit/chromium/public/WebCString.h" #include "third_party/WebKit/Source/WebKit/chromium/public/WebDataSource.h" +#include "third_party/WebKit/Source/WebKit/chromium/public/WebDocument.h" #include "third_party/WebKit/Source/WebKit/chromium/public/WebFrame.h" #include "third_party/WebKit/Source/WebKit/chromium/public/WebPageSerializer.h" #include "third_party/WebKit/Source/WebKit/chromium/public/WebRect.h" @@ -372,7 +373,7 @@ bool ChromeRenderViewObserver::allowReadFromClipboard(WebFrame* frame, bool default_value) { bool allowed = false; Send(new ViewHostMsg_CanTriggerClipboardRead( - routing_id(), frame->url(), &allowed)); + routing_id(), frame->document().url(), &allowed)); return allowed; } @@ -380,7 +381,7 @@ bool ChromeRenderViewObserver::allowWriteToClipboard(WebFrame* frame, bool default_value) { bool allowed = false; Send(new ViewHostMsg_CanTriggerClipboardWrite( - routing_id(), frame->url(), &allowed)); + routing_id(), frame->document().url(), &allowed)); return allowed; } @@ -438,8 +439,8 @@ void ChromeRenderViewObserver::DidStopLoading() { false), render_view()->content_state_immediately() ? 0 : kDelayForCaptureMs); - GURL osd_url = - render_view()->webview()->mainFrame()->openSearchDescriptionURL(); + WebFrame* main_frame = render_view()->webview()->mainFrame(); + GURL osd_url = main_frame->document().openSearchDescriptionURL(); if (!osd_url.is_empty()) { Send(new ViewHostMsg_PageHasOSDD( routing_id(), render_view()->page_id(), osd_url, @@ -539,7 +540,7 @@ void ChromeRenderViewObserver::CapturePageInfo(int load_id, last_indexed_page_id_ = load_id; // Get the URL for this page. - GURL url(main_frame->url()); + GURL url(main_frame->document().url()); if (url.is_empty()) return; @@ -604,7 +605,7 @@ void ChromeRenderViewObserver::CaptureThumbnail() { return; // get the URL for this page - GURL url(main_frame->url()); + GURL url(main_frame->document().url()); if (url.is_empty()) return; |