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

Side by Side Diff: content/browser/frame_host/interstitial_page_impl.cc

Issue 2694413006: Scope and clean up uses of AccessibilityMode. (Closed)
Patch Set: merge Created 3 years, 9 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/browser/frame_host/interstitial_page_impl.h" 5 #include "content/browser/frame_host/interstitial_page_impl.h"
6 6
7 #include <utility> 7 #include <utility>
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 403 matching lines...) Expand 10 before | Expand all | Expand 10 after
414 } 414 }
415 415
416 InterstitialPage* InterstitialPageImpl::GetAsInterstitialPage() { 416 InterstitialPage* InterstitialPageImpl::GetAsInterstitialPage() {
417 return this; 417 return this;
418 } 418 }
419 419
420 AccessibilityMode InterstitialPageImpl::GetAccessibilityMode() const { 420 AccessibilityMode InterstitialPageImpl::GetAccessibilityMode() const {
421 if (web_contents_) 421 if (web_contents_)
422 return static_cast<WebContentsImpl*>(web_contents_)->GetAccessibilityMode(); 422 return static_cast<WebContentsImpl*>(web_contents_)->GetAccessibilityMode();
423 else 423 else
424 return AccessibilityModeOff; 424 return AccessibilityMode();
425 } 425 }
426 426
427 void InterstitialPageImpl::Cut() { 427 void InterstitialPageImpl::Cut() {
428 FrameTreeNode* focused_node = frame_tree_.GetFocusedFrame(); 428 FrameTreeNode* focused_node = frame_tree_.GetFocusedFrame();
429 if (!focused_node) 429 if (!focused_node)
430 return; 430 return;
431 431
432 focused_node->current_frame_host()->Send( 432 focused_node->current_frame_host()->Send(
433 new InputMsg_Cut(focused_node->current_frame_host()->GetRoutingID())); 433 new InputMsg_Cut(focused_node->current_frame_host()->GetRoutingID()));
434 RecordAction(base::UserMetricsAction("Cut")); 434 RecordAction(base::UserMetricsAction("Cut"));
(...skipping 532 matching lines...) Expand 10 before | Expand all | Expand 10 after
967 void InterstitialPageImpl::UpdateDeviceScaleFactor(double device_scale_factor) { 967 void InterstitialPageImpl::UpdateDeviceScaleFactor(double device_scale_factor) {
968 WebContentsImpl* web_contents_impl = 968 WebContentsImpl* web_contents_impl =
969 static_cast<WebContentsImpl*>(web_contents_); 969 static_cast<WebContentsImpl*>(web_contents_);
970 if (!web_contents_impl) 970 if (!web_contents_impl)
971 return; 971 return;
972 972
973 web_contents_impl->UpdateDeviceScaleFactor(device_scale_factor); 973 web_contents_impl->UpdateDeviceScaleFactor(device_scale_factor);
974 } 974 }
975 975
976 } // namespace content 976 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/android/content_view_core_impl.cc ('k') | content/browser/frame_host/render_frame_host_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698