OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/web_contents/interstitial_page_impl.h" | 5 #include "content/browser/web_contents/interstitial_page_impl.h" |
6 | 6 |
7 #include <vector> | 7 #include <vector> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
81 bool right_aligned, | 81 bool right_aligned, |
82 bool allow_multiple_selection) OVERRIDE; | 82 bool allow_multiple_selection) OVERRIDE; |
83 virtual void StartDragging(const DropData& drop_data, | 83 virtual void StartDragging(const DropData& drop_data, |
84 WebDragOperationsMask operations_allowed, | 84 WebDragOperationsMask operations_allowed, |
85 const gfx::ImageSkia& image, | 85 const gfx::ImageSkia& image, |
86 const gfx::Vector2d& image_offset, | 86 const gfx::Vector2d& image_offset, |
87 const DragEventSourceInfo& event_info) OVERRIDE; | 87 const DragEventSourceInfo& event_info) OVERRIDE; |
88 virtual void UpdateDragCursor(WebDragOperation operation) OVERRIDE; | 88 virtual void UpdateDragCursor(WebDragOperation operation) OVERRIDE; |
89 virtual void GotFocus() OVERRIDE; | 89 virtual void GotFocus() OVERRIDE; |
90 virtual void TakeFocus(bool reverse) OVERRIDE; | 90 virtual void TakeFocus(bool reverse) OVERRIDE; |
| 91 virtual bool GrabSnapshot(const std::string& format, |
| 92 int quality, |
| 93 double scale, |
| 94 std::vector<uint8>* data) OVERRIDE; |
91 virtual void OnFindReply(int request_id, | 95 virtual void OnFindReply(int request_id, |
92 int number_of_matches, | 96 int number_of_matches, |
93 const gfx::Rect& selection_rect, | 97 const gfx::Rect& selection_rect, |
94 int active_match_ordinal, | 98 int active_match_ordinal, |
95 bool final_update); | 99 bool final_update); |
96 | 100 |
97 private: | 101 private: |
98 InterstitialPageImpl* interstitial_page_; | 102 InterstitialPageImpl* interstitial_page_; |
99 | 103 |
100 DISALLOW_COPY_AND_ASSIGN(InterstitialPageRVHDelegateView); | 104 DISALLOW_COPY_AND_ASSIGN(InterstitialPageRVHDelegateView); |
(...skipping 703 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
804 if (!interstitial_page_->web_contents()) | 808 if (!interstitial_page_->web_contents()) |
805 return; | 809 return; |
806 WebContentsImpl* web_contents = | 810 WebContentsImpl* web_contents = |
807 static_cast<WebContentsImpl*>(interstitial_page_->web_contents()); | 811 static_cast<WebContentsImpl*>(interstitial_page_->web_contents()); |
808 if (!web_contents->GetDelegateView()) | 812 if (!web_contents->GetDelegateView()) |
809 return; | 813 return; |
810 | 814 |
811 web_contents->GetDelegateView()->TakeFocus(reverse); | 815 web_contents->GetDelegateView()->TakeFocus(reverse); |
812 } | 816 } |
813 | 817 |
| 818 bool InterstitialPageImpl::InterstitialPageRVHDelegateView::GrabSnapshot( |
| 819 const std::string& format, int quality, double scale, |
| 820 std::vector<uint8>* data) { |
| 821 return false; |
| 822 } |
| 823 |
814 void InterstitialPageImpl::InterstitialPageRVHDelegateView::OnFindReply( | 824 void InterstitialPageImpl::InterstitialPageRVHDelegateView::OnFindReply( |
815 int request_id, int number_of_matches, const gfx::Rect& selection_rect, | 825 int request_id, int number_of_matches, const gfx::Rect& selection_rect, |
816 int active_match_ordinal, bool final_update) { | 826 int active_match_ordinal, bool final_update) { |
817 } | 827 } |
818 | 828 |
819 } // namespace content | 829 } // namespace content |
OLD | NEW |