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

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

Issue 901833002: Allow MimeHandlerViewGuest to be notified of StopFinding events. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 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 366 matching lines...) Expand 10 before | Expand all | Expand 10 after
377 new BrowserPluginMsg_SetContentsOpaque( 377 new BrowserPluginMsg_SetContentsOpaque(
378 browser_plugin_instance_id(), opaque)); 378 browser_plugin_instance_id(), opaque));
379 } 379 }
380 380
381 bool BrowserPluginGuest::Find(int request_id, 381 bool BrowserPluginGuest::Find(int request_id,
382 const base::string16& search_text, 382 const base::string16& search_text,
383 const blink::WebFindOptions& options) { 383 const blink::WebFindOptions& options) {
384 return delegate_->Find(request_id, search_text, options); 384 return delegate_->Find(request_id, search_text, options);
385 } 385 }
386 386
387 bool BrowserPluginGuest::StopFinding(StopFindAction action) {
388 return delegate_->StopFinding(action);
389 }
390
387 WebContentsImpl* BrowserPluginGuest::GetWebContents() const { 391 WebContentsImpl* BrowserPluginGuest::GetWebContents() const {
388 return static_cast<WebContentsImpl*>(web_contents()); 392 return static_cast<WebContentsImpl*>(web_contents());
389 } 393 }
390 394
391 gfx::Point BrowserPluginGuest::GetScreenCoordinates( 395 gfx::Point BrowserPluginGuest::GetScreenCoordinates(
392 const gfx::Point& relative_position) const { 396 const gfx::Point& relative_position) const {
393 if (!attached()) 397 if (!attached())
394 return relative_position; 398 return relative_position;
395 399
396 gfx::Point screen_pos(relative_position); 400 gfx::Point screen_pos(relative_position);
(...skipping 503 matching lines...) Expand 10 before | Expand all | Expand 10 after
900 void BrowserPluginGuest::OnImeCompositionRangeChanged( 904 void BrowserPluginGuest::OnImeCompositionRangeChanged(
901 const gfx::Range& range, 905 const gfx::Range& range,
902 const std::vector<gfx::Rect>& character_bounds) { 906 const std::vector<gfx::Rect>& character_bounds) {
903 static_cast<RenderWidgetHostViewBase*>( 907 static_cast<RenderWidgetHostViewBase*>(
904 web_contents()->GetRenderWidgetHostView())->ImeCompositionRangeChanged( 908 web_contents()->GetRenderWidgetHostView())->ImeCompositionRangeChanged(
905 range, character_bounds); 909 range, character_bounds);
906 } 910 }
907 #endif 911 #endif
908 912
909 } // namespace content 913 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/browser_plugin/browser_plugin_guest.h ('k') | content/browser/web_contents/web_contents_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698