OLD | NEW |
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/renderer_host/render_widget_host_view_android.h" | 5 #include "content/browser/renderer_host/render_widget_host_view_android.h" |
6 | 6 |
7 #include <android/bitmap.h> | 7 #include <android/bitmap.h> |
8 | 8 |
9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
10 #include "base/bind.h" | 10 #include "base/bind.h" |
(...skipping 493 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
504 } | 504 } |
505 } | 505 } |
506 | 506 |
507 void RenderWidgetHostViewAndroid::OnStartContentIntent( | 507 void RenderWidgetHostViewAndroid::OnStartContentIntent( |
508 const GURL& content_url) { | 508 const GURL& content_url) { |
509 if (content_view_core_) | 509 if (content_view_core_) |
510 content_view_core_->StartContentIntent(content_url); | 510 content_view_core_->StartContentIntent(content_url); |
511 } | 511 } |
512 | 512 |
513 void RenderWidgetHostViewAndroid::OnSmartClipDataExtracted( | 513 void RenderWidgetHostViewAndroid::OnSmartClipDataExtracted( |
514 const string16& result) { | 514 const base::string16& result) { |
515 // Custom serialization over IPC isn't allowed normally for security reasons. | 515 // Custom serialization over IPC isn't allowed normally for security reasons. |
516 // Since this feature is only used in (single-process) WebView, there are no | 516 // Since this feature is only used in (single-process) WebView, there are no |
517 // security issues. Enforce that it's only called in single process mode. | 517 // security issues. Enforce that it's only called in single process mode. |
518 CHECK(RenderProcessHost::run_renderer_in_process()); | 518 CHECK(RenderProcessHost::run_renderer_in_process()); |
519 if (content_view_core_) | 519 if (content_view_core_) |
520 content_view_core_->OnSmartClipDataExtracted(result); | 520 content_view_core_->OnSmartClipDataExtracted(result); |
521 } | 521 } |
522 | 522 |
523 void RenderWidgetHostViewAndroid::ImeCancelComposition() { | 523 void RenderWidgetHostViewAndroid::ImeCancelComposition() { |
524 ime_adapter_android_.CancelComposition(); | 524 ime_adapter_android_.CancelComposition(); |
(...skipping 895 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1420 // RenderWidgetHostView, public: | 1420 // RenderWidgetHostView, public: |
1421 | 1421 |
1422 // static | 1422 // static |
1423 RenderWidgetHostView* | 1423 RenderWidgetHostView* |
1424 RenderWidgetHostView::CreateViewForWidget(RenderWidgetHost* widget) { | 1424 RenderWidgetHostView::CreateViewForWidget(RenderWidgetHost* widget) { |
1425 RenderWidgetHostImpl* rwhi = RenderWidgetHostImpl::From(widget); | 1425 RenderWidgetHostImpl* rwhi = RenderWidgetHostImpl::From(widget); |
1426 return new RenderWidgetHostViewAndroid(rwhi, NULL); | 1426 return new RenderWidgetHostViewAndroid(rwhi, NULL); |
1427 } | 1427 } |
1428 | 1428 |
1429 } // namespace content | 1429 } // namespace content |
OLD | NEW |