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

Side by Side Diff: content/browser/browser_plugin/browser_plugin_guest.cc

Issue 1293963002: Fixing the Position of Context Menu for BrowserPlugin (<webview>) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 4 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
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/browser_plugin/browser_plugin_guest.h" 5 #include "content/browser/browser_plugin/browser_plugin_guest.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "base/message_loop/message_loop.h" 9 #include "base/message_loop/message_loop.h"
10 #include "base/pickle.h" 10 #include "base/pickle.h"
(...skipping 969 matching lines...) Expand 10 before | Expand all | Expand 10 after
980 #if defined(OS_MACOSX) || defined(USE_AURA) 980 #if defined(OS_MACOSX) || defined(USE_AURA)
981 void BrowserPluginGuest::OnImeCompositionRangeChanged( 981 void BrowserPluginGuest::OnImeCompositionRangeChanged(
982 const gfx::Range& range, 982 const gfx::Range& range,
983 const std::vector<gfx::Rect>& character_bounds) { 983 const std::vector<gfx::Rect>& character_bounds) {
984 static_cast<RenderWidgetHostViewBase*>( 984 static_cast<RenderWidgetHostViewBase*>(
985 web_contents()->GetRenderWidgetHostView())->ImeCompositionRangeChanged( 985 web_contents()->GetRenderWidgetHostView())->ImeCompositionRangeChanged(
986 range, character_bounds); 986 range, character_bounds);
987 } 987 }
988 #endif 988 #endif
989 989
990 void BrowserPluginGuest::SetContextMenuPosition(const gfx::Point& position) {
991 if (delegate_)
992 delegate_->SetContextMenuPosition(position);
993 }
994
990 } // namespace content 995 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698