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

Side by Side Diff: chrome/renderer/render_view.cc

Issue 657020: Landing Chris Guillory CL.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 10 years, 10 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 | « chrome/browser/browser_accessibility.cc ('k') | webkit/glue/webaccessibility.h » ('j') | 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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 "chrome/renderer/render_view.h" 5 #include "chrome/renderer/render_view.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 1267 matching lines...) Expand 10 before | Expand all | Expand 10 after
1278 1278
1279 last_page_id_sent_to_browser_ = 1279 last_page_id_sent_to_browser_ =
1280 std::max(last_page_id_sent_to_browser_, page_id_); 1280 std::max(last_page_id_sent_to_browser_, page_id_);
1281 1281
1282 // If we end up reusing this WebRequest (for example, due to a #ref click), 1282 // If we end up reusing this WebRequest (for example, due to a #ref click),
1283 // we don't want the transition type to persist. Just clear it. 1283 // we don't want the transition type to persist. Just clear it.
1284 navigation_state->set_transition_type(PageTransition::LINK); 1284 navigation_state->set_transition_type(PageTransition::LINK);
1285 1285
1286 #if defined(OS_WIN) 1286 #if defined(OS_WIN)
1287 if (accessibility_.get()) { 1287 if (accessibility_.get()) {
1288 // Clear accessibility info cache. 1288 // Remove accessibility info cache.
1289 accessibility_->clear(); 1289 accessibility_.reset();
1290 } 1290 }
1291 #else 1291 #else
1292 // TODO(port): accessibility not yet implemented. See http://crbug.com/8288. 1292 // TODO(port): accessibility not yet implemented. See http://crbug.com/8288.
1293 #endif 1293 #endif
1294 } 1294 }
1295 1295
1296 // Tell the embedding application that the title of the active page has changed 1296 // Tell the embedding application that the title of the active page has changed
1297 void RenderView::UpdateTitle(WebFrame* frame, const string16& title) { 1297 void RenderView::UpdateTitle(WebFrame* frame, const string16& title) {
1298 // Ignore all but top level navigations... 1298 // Ignore all but top level navigations...
1299 if (!frame->parent()) { 1299 if (!frame->parent()) {
(...skipping 2353 matching lines...) Expand 10 before | Expand all | Expand 10 after
3653 const webkit_glue::WebAccessibility::InParams& in_params, 3653 const webkit_glue::WebAccessibility::InParams& in_params,
3654 webkit_glue::WebAccessibility::OutParams* out_params) { 3654 webkit_glue::WebAccessibility::OutParams* out_params) {
3655 #if defined(OS_WIN) 3655 #if defined(OS_WIN)
3656 if (!accessibility_.get()) { 3656 if (!accessibility_.get()) {
3657 // TODO(dglazkov): Once implemented for all ports, remove lazy 3657 // TODO(dglazkov): Once implemented for all ports, remove lazy
3658 // instantiation of accessibility_. 3658 // instantiation of accessibility_.
3659 accessibility_.reset(WebAccessibilityCache::create()); 3659 accessibility_.reset(WebAccessibilityCache::create());
3660 accessibility_->initialize(webview()); 3660 accessibility_->initialize(webview());
3661 } 3661 }
3662 3662
3663 webkit_glue::WebAccessibility::GetAccObjInfo(accessibility_.get(), 3663 out_params->return_code =
3664 in_params, 3664 webkit_glue::WebAccessibility::GetAccObjInfo(accessibility_.get(),
3665 out_params); 3665 in_params,
3666 out_params);
3666 3667
3667 #else // defined(OS_WIN) 3668 #else // defined(OS_WIN)
3668 // TODO(port): accessibility not yet implemented 3669 // TODO(port): accessibility not yet implemented
3669 NOTIMPLEMENTED(); 3670 NOTIMPLEMENTED();
3670 #endif 3671 #endif
3671 } 3672 }
3672 3673
3673 void RenderView::OnClearAccessibilityInfo(int acc_obj_id, bool clear_all) { 3674 void RenderView::OnClearAccessibilityInfo(int acc_obj_id, bool clear_all) {
3674 #if defined(OS_WIN) 3675 #if defined(OS_WIN)
3675 if (!accessibility_.get()) { 3676 if (!accessibility_.get()) {
(...skipping 880 matching lines...) Expand 10 before | Expand all | Expand 10 after
4556 Send(new ViewHostMsg_GPUPluginBuffersSwapped(routing_id(), window)); 4557 Send(new ViewHostMsg_GPUPluginBuffersSwapped(routing_id(), window));
4557 } 4558 }
4558 #endif 4559 #endif
4559 4560
4560 WebKit::WebGeolocationServiceInterface* RenderView::getGeolocationService() { 4561 WebKit::WebGeolocationServiceInterface* RenderView::getGeolocationService() {
4561 if (!geolocation_dispatcher_.get()) 4562 if (!geolocation_dispatcher_.get())
4562 geolocation_dispatcher_.reset(new GeolocationDispatcher(this)); 4563 geolocation_dispatcher_.reset(new GeolocationDispatcher(this));
4563 return geolocation_dispatcher_.get(); 4564 return geolocation_dispatcher_.get();
4564 } 4565 }
4565 4566
OLDNEW
« no previous file with comments | « chrome/browser/browser_accessibility.cc ('k') | webkit/glue/webaccessibility.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698