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

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

Issue 10436010: Multi-select <select> in 'external popup window' (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase after reverts and re-reverts.. Created 8 years, 7 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 | Annotate | Revision Log
OLDNEW
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 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 } 79 }
80 80
81 } // namespace 81 } // namespace
82 82
83 class InterstitialPageImpl::InterstitialPageRVHDelegateView 83 class InterstitialPageImpl::InterstitialPageRVHDelegateView
84 : public content::RenderViewHostDelegateView { 84 : public content::RenderViewHostDelegateView {
85 public: 85 public:
86 explicit InterstitialPageRVHDelegateView(InterstitialPageImpl* page); 86 explicit InterstitialPageRVHDelegateView(InterstitialPageImpl* page);
87 87
88 // RenderViewHostDelegateView implementation: 88 // RenderViewHostDelegateView implementation:
89 virtual void CreateNewWindow(
90 int route_id,
91 const ViewHostMsg_CreateWindow_Params& params);
92 virtual void CreateNewWidget(int route_id,
93 WebKit::WebPopupType popup_type);
94 virtual void CreateNewFullscreenWidget(int route_id);
95 virtual void ShowCreatedWindow(int route_id,
96 WindowOpenDisposition disposition,
97 const gfx::Rect& initial_pos,
98 bool user_gesture);
99 virtual void ShowCreatedWidget(int route_id,
100 const gfx::Rect& initial_pos);
101 virtual void ShowCreatedFullscreenWidget(int route_id);
102 virtual void ShowContextMenu(const content::ContextMenuParams& params);
103 virtual void ShowPopupMenu(const gfx::Rect& bounds,
Avi (use Gerrit) 2012/05/24 18:41:41 ShowPopupMenu was the only function you added to R
aruslan 2012/05/24 19:53:15 Stupid me. Thanks!! On 2012/05/24 18:41:41, Avi wr
104 int item_height,
105 double item_font_size,
106 int selected_item,
107 const std::vector<WebMenuItem>& items,
108 bool right_aligned,
109 bool allow_multiple_selection);
89 virtual void StartDragging(const WebDropData& drop_data, 110 virtual void StartDragging(const WebDropData& drop_data,
90 WebDragOperationsMask operations_allowed, 111 WebDragOperationsMask operations_allowed,
91 const SkBitmap& image, 112 const SkBitmap& image,
92 const gfx::Point& image_offset); 113 const gfx::Point& image_offset);
93 virtual void UpdateDragCursor(WebDragOperation operation); 114 virtual void UpdateDragCursor(WebDragOperation operation);
94 virtual void GotFocus(); 115 virtual void GotFocus();
95 virtual void TakeFocus(bool reverse); 116 virtual void TakeFocus(bool reverse);
96 virtual void OnFindReply(int request_id, 117 virtual void OnFindReply(int request_id,
97 int number_of_matches, 118 int number_of_matches,
98 const gfx::Rect& selection_rect, 119 const gfx::Rect& selection_rect,
(...skipping 586 matching lines...) Expand 10 before | Expand all | Expand 10 after
685 original_child_id_, 706 original_child_id_,
686 original_rvh_id_, 707 original_rvh_id_,
687 action)); 708 action));
688 } 709 }
689 710
690 InterstitialPageImpl::InterstitialPageRVHDelegateView:: 711 InterstitialPageImpl::InterstitialPageRVHDelegateView::
691 InterstitialPageRVHDelegateView(InterstitialPageImpl* page) 712 InterstitialPageRVHDelegateView(InterstitialPageImpl* page)
692 : interstitial_page_(page) { 713 : interstitial_page_(page) {
693 } 714 }
694 715
716 void InterstitialPageImpl::InterstitialPageRVHDelegateView::CreateNewWindow(
717 int route_id,
718 const ViewHostMsg_CreateWindow_Params& params) {
719 NOTREACHED() << "InterstitialPage does not support showing popups yet.";
720 }
721
722 void InterstitialPageImpl::InterstitialPageRVHDelegateView::CreateNewWidget(
723 int route_id, WebKit::WebPopupType popup_type) {
724 NOTREACHED() << "InterstitialPage does not support showing drop-downs yet.";
725 }
726
727 void InterstitialPageImpl::InterstitialPageRVHDelegateView::
728 CreateNewFullscreenWidget(int route_id) {
729 NOTREACHED()
730 << "InterstitialPage does not support showing full screen popups.";
731 }
732
733 void InterstitialPageImpl::InterstitialPageRVHDelegateView::ShowCreatedWindow(
734 int route_id, WindowOpenDisposition disposition,
735 const gfx::Rect& initial_pos, bool user_gesture) {
736 NOTREACHED() << "InterstitialPage does not support showing popups yet.";
737 }
738
739 void InterstitialPageImpl::InterstitialPageRVHDelegateView::ShowCreatedWidget(
740 int route_id, const gfx::Rect& initial_pos) {
741 NOTREACHED() << "InterstitialPage does not support showing drop-downs yet.";
742 }
743
744 void InterstitialPageImpl::InterstitialPageRVHDelegateView::
745 ShowCreatedFullscreenWidget(int route_id) {
746 NOTREACHED()
747 << "InterstitialPage does not support showing full screen popups.";
748 }
749
750 void InterstitialPageImpl::InterstitialPageRVHDelegateView::ShowContextMenu(
751 const content::ContextMenuParams& params) {
752 }
Avi (use Gerrit) 2012/05/24 18:41:41 Bad merge.
aruslan 2012/05/24 19:53:15 Done.
753
754 void InterstitialPageImpl::InterstitialPageRVHDelegateView::ShowPopupMenu(
755 const gfx::Rect& bounds,
756 int item_height,
757 double item_font_size,
758 int selected_item,
759 const std::vector<WebMenuItem>& items,
760 bool right_aligned,
761 bool allow_multiple_selection) {
762 }
763
695 void InterstitialPageImpl::InterstitialPageRVHDelegateView::StartDragging( 764 void InterstitialPageImpl::InterstitialPageRVHDelegateView::StartDragging(
696 const WebDropData& drop_data, 765 const WebDropData& drop_data,
697 WebDragOperationsMask allowed_operations, 766 WebDragOperationsMask allowed_operations,
698 const SkBitmap& image, 767 const SkBitmap& image,
699 const gfx::Point& image_offset) { 768 const gfx::Point& image_offset) {
700 NOTREACHED() << "InterstitialPage does not support dragging yet."; 769 NOTREACHED() << "InterstitialPage does not support dragging yet.";
701 } 770 }
702 771
703 void InterstitialPageImpl::InterstitialPageRVHDelegateView::UpdateDragCursor( 772 void InterstitialPageImpl::InterstitialPageRVHDelegateView::UpdateDragCursor(
704 WebDragOperation) { 773 WebDragOperation) {
(...skipping 12 matching lines...) Expand all
717 if (!web_contents->GetDelegateView()) 786 if (!web_contents->GetDelegateView())
718 return; 787 return;
719 788
720 web_contents->GetDelegateView()->TakeFocus(reverse); 789 web_contents->GetDelegateView()->TakeFocus(reverse);
721 } 790 }
722 791
723 void InterstitialPageImpl::InterstitialPageRVHDelegateView::OnFindReply( 792 void InterstitialPageImpl::InterstitialPageRVHDelegateView::OnFindReply(
724 int request_id, int number_of_matches, const gfx::Rect& selection_rect, 793 int request_id, int number_of_matches, const gfx::Rect& selection_rect,
725 int active_match_ordinal, bool final_update) { 794 int active_match_ordinal, bool final_update) {
726 } 795 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698