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 <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 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
71 | 71 |
72 } // namespace | 72 } // namespace |
73 | 73 |
74 class InterstitialPageImpl::InterstitialPageRVHDelegateView | 74 class InterstitialPageImpl::InterstitialPageRVHDelegateView |
75 : public RenderViewHostDelegateView { | 75 : public RenderViewHostDelegateView { |
76 public: | 76 public: |
77 explicit InterstitialPageRVHDelegateView(InterstitialPageImpl* page); | 77 explicit InterstitialPageRVHDelegateView(InterstitialPageImpl* page); |
78 | 78 |
79 // RenderViewHostDelegateView implementation: | 79 // RenderViewHostDelegateView implementation: |
80 #if defined(OS_MACOSX) || defined(OS_ANDROID) | 80 #if defined(OS_MACOSX) || defined(OS_ANDROID) |
81 virtual void ShowPopupMenu(RenderFrameHost* render_frame_host, | 81 void ShowPopupMenu(RenderFrameHost* render_frame_host, |
82 const gfx::Rect& bounds, | 82 const gfx::Rect& bounds, |
83 int item_height, | 83 int item_height, |
84 double item_font_size, | 84 double item_font_size, |
85 int selected_item, | 85 int selected_item, |
86 const std::vector<MenuItem>& items, | 86 const std::vector<MenuItem>& items, |
87 bool right_aligned, | 87 bool right_aligned, |
88 bool allow_multiple_selection) override; | 88 bool allow_multiple_selection) override; |
89 virtual void HidePopupMenu() override; | 89 void HidePopupMenu() override; |
90 #endif | 90 #endif |
91 virtual void StartDragging(const DropData& drop_data, | 91 void StartDragging(const DropData& drop_data, |
92 WebDragOperationsMask operations_allowed, | 92 WebDragOperationsMask operations_allowed, |
93 const gfx::ImageSkia& image, | 93 const gfx::ImageSkia& image, |
94 const gfx::Vector2d& image_offset, | 94 const gfx::Vector2d& image_offset, |
95 const DragEventSourceInfo& event_info) override; | 95 const DragEventSourceInfo& event_info) override; |
96 virtual void UpdateDragCursor(WebDragOperation operation) override; | 96 void UpdateDragCursor(WebDragOperation operation) override; |
97 virtual void GotFocus() override; | 97 void GotFocus() override; |
98 virtual void TakeFocus(bool reverse) override; | 98 void TakeFocus(bool reverse) override; |
99 virtual void OnFindReply(int request_id, | 99 virtual void OnFindReply(int request_id, |
100 int number_of_matches, | 100 int number_of_matches, |
101 const gfx::Rect& selection_rect, | 101 const gfx::Rect& selection_rect, |
102 int active_match_ordinal, | 102 int active_match_ordinal, |
103 bool final_update); | 103 bool final_update); |
104 | 104 |
105 private: | 105 private: |
106 InterstitialPageImpl* interstitial_page_; | 106 InterstitialPageImpl* interstitial_page_; |
107 | 107 |
108 DISALLOW_COPY_AND_ASSIGN(InterstitialPageRVHDelegateView); | 108 DISALLOW_COPY_AND_ASSIGN(InterstitialPageRVHDelegateView); |
(...skipping 803 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
912 | 912 |
913 web_contents->GetDelegateView()->TakeFocus(reverse); | 913 web_contents->GetDelegateView()->TakeFocus(reverse); |
914 } | 914 } |
915 | 915 |
916 void InterstitialPageImpl::InterstitialPageRVHDelegateView::OnFindReply( | 916 void InterstitialPageImpl::InterstitialPageRVHDelegateView::OnFindReply( |
917 int request_id, int number_of_matches, const gfx::Rect& selection_rect, | 917 int request_id, int number_of_matches, const gfx::Rect& selection_rect, |
918 int active_match_ordinal, bool final_update) { | 918 int active_match_ordinal, bool final_update) { |
919 } | 919 } |
920 | 920 |
921 } // namespace content | 921 } // namespace content |
OLD | NEW |