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

Side by Side Diff: extensions/browser/guest_view/web_view/web_view_guest.cc

Issue 1173523006: Re-enable WebView ChromeVox manual script injection when accessibility status changes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 6 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "extensions/browser/guest_view/web_view/web_view_guest.h" 5 #include "extensions/browser/guest_view/web_view/web_view_guest.h"
6 6
7 #include "base/message_loop/message_loop.h" 7 #include "base/message_loop/message_loop.h"
8 #include "base/strings/stringprintf.h" 8 #include "base/strings/stringprintf.h"
9 #include "base/strings/utf_string_conversions.h" 9 #include "base/strings/utf_string_conversions.h"
10 #include "components/browsing_data/storage_partition_http_cache_data_remover.h" 10 #include "components/browsing_data/storage_partition_http_cache_data_remover.h"
(...skipping 316 matching lines...) Expand 10 before | Expand all | Expand 10 after
327 new ScriptExecutor(web_contents(), &script_observers_)); 327 new ScriptExecutor(web_contents(), &script_observers_));
328 328
329 notification_registrar_.Add(this, 329 notification_registrar_.Add(this,
330 content::NOTIFICATION_LOAD_COMPLETED_MAIN_FRAME, 330 content::NOTIFICATION_LOAD_COMPLETED_MAIN_FRAME,
331 content::Source<WebContents>(web_contents())); 331 content::Source<WebContents>(web_contents()));
332 332
333 notification_registrar_.Add(this, 333 notification_registrar_.Add(this,
334 content::NOTIFICATION_RESOURCE_RECEIVED_REDIRECT, 334 content::NOTIFICATION_RESOURCE_RECEIVED_REDIRECT,
335 content::Source<WebContents>(web_contents())); 335 content::Source<WebContents>(web_contents()));
336 336
337 if (web_view_guest_delegate_)
338 web_view_guest_delegate_->OnDidInitialize();
337 AttachWebViewHelpers(web_contents()); 339 AttachWebViewHelpers(web_contents());
338 340
339 rules_registry_id_ = GetOrGenerateRulesRegistryID( 341 rules_registry_id_ = GetOrGenerateRulesRegistryID(
340 owner_web_contents()->GetRenderProcessHost()->GetID(), 342 owner_web_contents()->GetRenderProcessHost()->GetID(),
341 view_instance_id()); 343 view_instance_id());
342 344
343 // We must install the mapping from guests to WebViews prior to resuming 345 // We must install the mapping from guests to WebViews prior to resuming
344 // suspended resource loads so that the WebRequest API will catch resource 346 // suspended resource loads so that the WebRequest API will catch resource
345 // requests. 347 // requests.
346 PushWebViewStateToIOThread(); 348 PushWebViewStateToIOThread();
(...skipping 1092 matching lines...) Expand 10 before | Expand all | Expand 10 after
1439 scoped_ptr<base::DictionaryValue> args(new base::DictionaryValue()); 1441 scoped_ptr<base::DictionaryValue> args(new base::DictionaryValue());
1440 DispatchEventToView( 1442 DispatchEventToView(
1441 new GuestViewEvent(webview::kEventExitFullscreen, args.Pass())); 1443 new GuestViewEvent(webview::kEventExitFullscreen, args.Pass()));
1442 } 1444 }
1443 // Since we changed fullscreen state, sending a Resize message ensures that 1445 // Since we changed fullscreen state, sending a Resize message ensures that
1444 // renderer/ sees the change. 1446 // renderer/ sees the change.
1445 web_contents()->GetRenderViewHost()->WasResized(); 1447 web_contents()->GetRenderViewHost()->WasResized();
1446 } 1448 }
1447 1449
1448 } // namespace extensions 1450 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698