| 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/tab_contents/interstitial_page_impl.h" | 5 #include "content/browser/tab_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 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 86 virtual void CreateNewWidget(int route_id, | 86 virtual void CreateNewWidget(int route_id, |
| 87 WebKit::WebPopupType popup_type); | 87 WebKit::WebPopupType popup_type); |
| 88 virtual void CreateNewFullscreenWidget(int route_id); | 88 virtual void CreateNewFullscreenWidget(int route_id); |
| 89 virtual void ShowCreatedWindow(int route_id, | 89 virtual void ShowCreatedWindow(int route_id, |
| 90 WindowOpenDisposition disposition, | 90 WindowOpenDisposition disposition, |
| 91 const gfx::Rect& initial_pos, | 91 const gfx::Rect& initial_pos, |
| 92 bool user_gesture); | 92 bool user_gesture); |
| 93 virtual void ShowCreatedWidget(int route_id, | 93 virtual void ShowCreatedWidget(int route_id, |
| 94 const gfx::Rect& initial_pos); | 94 const gfx::Rect& initial_pos); |
| 95 virtual void ShowCreatedFullscreenWidget(int route_id); | 95 virtual void ShowCreatedFullscreenWidget(int route_id); |
| 96 virtual void ShowContextMenu(const ContextMenuParams& params); | 96 virtual void ShowContextMenu(const content::ContextMenuParams& params); |
| 97 virtual void ShowPopupMenu(const gfx::Rect& bounds, | 97 virtual void ShowPopupMenu(const gfx::Rect& bounds, |
| 98 int item_height, | 98 int item_height, |
| 99 double item_font_size, | 99 double item_font_size, |
| 100 int selected_item, | 100 int selected_item, |
| 101 const std::vector<WebMenuItem>& items, | 101 const std::vector<WebMenuItem>& items, |
| 102 bool right_aligned); | 102 bool right_aligned); |
| 103 virtual void StartDragging(const WebDropData& drop_data, | 103 virtual void StartDragging(const WebDropData& drop_data, |
| 104 WebDragOperationsMask operations_allowed, | 104 WebDragOperationsMask operations_allowed, |
| 105 const SkBitmap& image, | 105 const SkBitmap& image, |
| 106 const gfx::Point& image_offset); | 106 const gfx::Point& image_offset); |
| (...skipping 583 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 690 NOTREACHED() << "InterstitialPage does not support showing drop-downs yet."; | 690 NOTREACHED() << "InterstitialPage does not support showing drop-downs yet."; |
| 691 } | 691 } |
| 692 | 692 |
| 693 void InterstitialPageImpl::InterstitialPageRVHViewDelegate:: | 693 void InterstitialPageImpl::InterstitialPageRVHViewDelegate:: |
| 694 ShowCreatedFullscreenWidget(int route_id) { | 694 ShowCreatedFullscreenWidget(int route_id) { |
| 695 NOTREACHED() | 695 NOTREACHED() |
| 696 << "InterstitialPage does not support showing full screen popups."; | 696 << "InterstitialPage does not support showing full screen popups."; |
| 697 } | 697 } |
| 698 | 698 |
| 699 void InterstitialPageImpl::InterstitialPageRVHViewDelegate::ShowContextMenu( | 699 void InterstitialPageImpl::InterstitialPageRVHViewDelegate::ShowContextMenu( |
| 700 const ContextMenuParams& params) { | 700 const content::ContextMenuParams& params) { |
| 701 } | 701 } |
| 702 | 702 |
| 703 void InterstitialPageImpl::InterstitialPageRVHViewDelegate::ShowPopupMenu( | 703 void InterstitialPageImpl::InterstitialPageRVHViewDelegate::ShowPopupMenu( |
| 704 const gfx::Rect& bounds, | 704 const gfx::Rect& bounds, |
| 705 int item_height, | 705 int item_height, |
| 706 double item_font_size, | 706 double item_font_size, |
| 707 int selected_item, | 707 int selected_item, |
| 708 const std::vector<WebMenuItem>& items, | 708 const std::vector<WebMenuItem>& items, |
| 709 bool right_aligned) { | 709 bool right_aligned) { |
| 710 } | 710 } |
| (...skipping 22 matching lines...) Expand all Loading... |
| 733 if (!tab->GetViewDelegate()) | 733 if (!tab->GetViewDelegate()) |
| 734 return; | 734 return; |
| 735 | 735 |
| 736 tab->GetViewDelegate()->TakeFocus(reverse); | 736 tab->GetViewDelegate()->TakeFocus(reverse); |
| 737 } | 737 } |
| 738 | 738 |
| 739 void InterstitialPageImpl::InterstitialPageRVHViewDelegate::OnFindReply( | 739 void InterstitialPageImpl::InterstitialPageRVHViewDelegate::OnFindReply( |
| 740 int request_id, int number_of_matches, const gfx::Rect& selection_rect, | 740 int request_id, int number_of_matches, const gfx::Rect& selection_rect, |
| 741 int active_match_ordinal, bool final_update) { | 741 int active_match_ordinal, bool final_update) { |
| 742 } | 742 } |
| OLD | NEW |