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

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

Issue 10917102: Context menus should appear above the touch point if invoked by long press. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: patch Created 8 years, 3 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 657 matching lines...) Expand 10 before | Expand all | Expand 10 after
668 const gfx::Rect& initial_pos) { 668 const gfx::Rect& initial_pos) {
669 NOTREACHED() << "InterstitialPage does not support showing drop-downs yet."; 669 NOTREACHED() << "InterstitialPage does not support showing drop-downs yet.";
670 } 670 }
671 671
672 void InterstitialPageImpl::ShowCreatedFullscreenWidget(int route_id) { 672 void InterstitialPageImpl::ShowCreatedFullscreenWidget(int route_id) {
673 NOTREACHED() 673 NOTREACHED()
674 << "InterstitialPage does not support showing full screen popups."; 674 << "InterstitialPage does not support showing full screen popups.";
675 } 675 }
676 676
677 void InterstitialPageImpl::ShowContextMenu( 677 void InterstitialPageImpl::ShowContextMenu(
678 const content::ContextMenuParams& params) { 678 const content::ContextMenuParams& params,
679 const content::ContextMenuSourceType& type) {
679 } 680 }
680 681
681 void InterstitialPageImpl::Disable() { 682 void InterstitialPageImpl::Disable() {
682 enabled_ = false; 683 enabled_ = false;
683 } 684 }
684 685
685 void InterstitialPageImpl::TakeActionOnResourceDispatcher( 686 void InterstitialPageImpl::TakeActionOnResourceDispatcher(
686 ResourceRequestAction action) { 687 ResourceRequestAction action) {
687 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)) << 688 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)) <<
688 "TakeActionOnResourceDispatcher should be called on the main thread."; 689 "TakeActionOnResourceDispatcher should be called on the main thread.";
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
755 if (!web_contents->GetDelegateView()) 756 if (!web_contents->GetDelegateView())
756 return; 757 return;
757 758
758 web_contents->GetDelegateView()->TakeFocus(reverse); 759 web_contents->GetDelegateView()->TakeFocus(reverse);
759 } 760 }
760 761
761 void InterstitialPageImpl::InterstitialPageRVHDelegateView::OnFindReply( 762 void InterstitialPageImpl::InterstitialPageRVHDelegateView::OnFindReply(
762 int request_id, int number_of_matches, const gfx::Rect& selection_rect, 763 int request_id, int number_of_matches, const gfx::Rect& selection_rect,
763 int active_match_ordinal, bool final_update) { 764 int active_match_ordinal, bool final_update) {
764 } 765 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698