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

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 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 ShowPopupMenu(const gfx::Rect& bounds,
90 int item_height,
91 double item_font_size,
92 int selected_item,
93 const std::vector<WebMenuItem>& items,
94 bool right_aligned,
95 bool allow_multiple_selection) OVERRIDE;
89 virtual void StartDragging(const WebDropData& drop_data, 96 virtual void StartDragging(const WebDropData& drop_data,
90 WebDragOperationsMask operations_allowed, 97 WebDragOperationsMask operations_allowed,
91 const SkBitmap& image, 98 const SkBitmap& image,
92 const gfx::Point& image_offset); 99 const gfx::Point& image_offset) OVERRIDE;
93 virtual void UpdateDragCursor(WebDragOperation operation); 100 virtual void UpdateDragCursor(WebDragOperation operation) OVERRIDE;
94 virtual void GotFocus(); 101 virtual void GotFocus() OVERRIDE;
95 virtual void TakeFocus(bool reverse); 102 virtual void TakeFocus(bool reverse) OVERRIDE;
96 virtual void OnFindReply(int request_id, 103 virtual void OnFindReply(int request_id,
97 int number_of_matches, 104 int number_of_matches,
98 const gfx::Rect& selection_rect, 105 const gfx::Rect& selection_rect,
99 int active_match_ordinal, 106 int active_match_ordinal,
100 bool final_update); 107 bool final_update);
101 108
102 private: 109 private:
103 InterstitialPageImpl* interstitial_page_; 110 InterstitialPageImpl* interstitial_page_;
104 111
105 DISALLOW_COPY_AND_ASSIGN(InterstitialPageRVHDelegateView); 112 DISALLOW_COPY_AND_ASSIGN(InterstitialPageRVHDelegateView);
(...skipping 580 matching lines...) Expand 10 before | Expand all | Expand 10 after
686 original_child_id_, 693 original_child_id_,
687 original_rvh_id_, 694 original_rvh_id_,
688 action)); 695 action));
689 } 696 }
690 697
691 InterstitialPageImpl::InterstitialPageRVHDelegateView:: 698 InterstitialPageImpl::InterstitialPageRVHDelegateView::
692 InterstitialPageRVHDelegateView(InterstitialPageImpl* page) 699 InterstitialPageRVHDelegateView(InterstitialPageImpl* page)
693 : interstitial_page_(page) { 700 : interstitial_page_(page) {
694 } 701 }
695 702
703 void InterstitialPageImpl::InterstitialPageRVHDelegateView::ShowPopupMenu(
704 const gfx::Rect& bounds,
705 int item_height,
706 double item_font_size,
707 int selected_item,
708 const std::vector<WebMenuItem>& items,
709 bool right_aligned,
710 bool allow_multiple_selection) {
711 NOTREACHED() << "InterstitialPage does not support showing popup menus.";
712 }
713
696 void InterstitialPageImpl::InterstitialPageRVHDelegateView::StartDragging( 714 void InterstitialPageImpl::InterstitialPageRVHDelegateView::StartDragging(
697 const WebDropData& drop_data, 715 const WebDropData& drop_data,
698 WebDragOperationsMask allowed_operations, 716 WebDragOperationsMask allowed_operations,
699 const SkBitmap& image, 717 const SkBitmap& image,
700 const gfx::Point& image_offset) { 718 const gfx::Point& image_offset) {
701 NOTREACHED() << "InterstitialPage does not support dragging yet."; 719 NOTREACHED() << "InterstitialPage does not support dragging yet.";
702 } 720 }
703 721
704 void InterstitialPageImpl::InterstitialPageRVHDelegateView::UpdateDragCursor( 722 void InterstitialPageImpl::InterstitialPageRVHDelegateView::UpdateDragCursor(
705 WebDragOperation) { 723 WebDragOperation) {
(...skipping 12 matching lines...) Expand all
718 if (!web_contents->GetDelegateView()) 736 if (!web_contents->GetDelegateView())
719 return; 737 return;
720 738
721 web_contents->GetDelegateView()->TakeFocus(reverse); 739 web_contents->GetDelegateView()->TakeFocus(reverse);
722 } 740 }
723 741
724 void InterstitialPageImpl::InterstitialPageRVHDelegateView::OnFindReply( 742 void InterstitialPageImpl::InterstitialPageRVHDelegateView::OnFindReply(
725 int request_id, int number_of_matches, const gfx::Rect& selection_rect, 743 int request_id, int number_of_matches, const gfx::Rect& selection_rect,
726 int active_match_ordinal, bool final_update) { 744 int active_match_ordinal, bool final_update) {
727 } 745 }
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_view_host_unittest.cc ('k') | content/browser/web_contents/web_contents_view_android.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698