OLD | NEW |
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 Loading... |
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::kOff; |
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 522 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
957 void InterstitialPageImpl::UpdateDeviceScaleFactor(double device_scale_factor) { | 957 void InterstitialPageImpl::UpdateDeviceScaleFactor(double device_scale_factor) { |
958 WebContentsImpl* web_contents_impl = | 958 WebContentsImpl* web_contents_impl = |
959 static_cast<WebContentsImpl*>(web_contents_); | 959 static_cast<WebContentsImpl*>(web_contents_); |
960 if (!web_contents_impl) | 960 if (!web_contents_impl) |
961 return; | 961 return; |
962 | 962 |
963 web_contents_impl->UpdateDeviceScaleFactor(device_scale_factor); | 963 web_contents_impl->UpdateDeviceScaleFactor(device_scale_factor); |
964 } | 964 } |
965 | 965 |
966 } // namespace content | 966 } // namespace content |
OLD | NEW |