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

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

Issue 102593002: Convert string16 to base::string16 in content. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years 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/web_contents_view_android.h" 5 #include "content/browser/web_contents/web_contents_view_android.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "content/browser/android/content_view_core_impl.h" 8 #include "content/browser/android/content_view_core_impl.h"
9 #include "content/browser/frame_host/interstitial_page_impl.h" 9 #include "content/browser/frame_host/interstitial_page_impl.h"
10 #include "content/browser/media/android/browser_media_player_manager.h" 10 #include "content/browser/media/android/browser_media_player_manager.h"
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 gfx::NativeWindow WebContentsViewAndroid::GetTopLevelNativeWindow() const { 73 gfx::NativeWindow WebContentsViewAndroid::GetTopLevelNativeWindow() const {
74 return content_view_core_ ? content_view_core_->GetWindowAndroid() : NULL; 74 return content_view_core_ ? content_view_core_->GetWindowAndroid() : NULL;
75 } 75 }
76 76
77 void WebContentsViewAndroid::GetContainerBounds(gfx::Rect* out) const { 77 void WebContentsViewAndroid::GetContainerBounds(gfx::Rect* out) const {
78 RenderWidgetHostView* rwhv = web_contents_->GetRenderWidgetHostView(); 78 RenderWidgetHostView* rwhv = web_contents_->GetRenderWidgetHostView();
79 if (rwhv) 79 if (rwhv)
80 *out = rwhv->GetViewBounds(); 80 *out = rwhv->GetViewBounds();
81 } 81 }
82 82
83 void WebContentsViewAndroid::SetPageTitle(const string16& title) { 83 void WebContentsViewAndroid::SetPageTitle(const base::string16& title) {
84 if (content_view_core_) 84 if (content_view_core_)
85 content_view_core_->SetTitle(title); 85 content_view_core_->SetTitle(title);
86 } 86 }
87 87
88 void WebContentsViewAndroid::OnTabCrashed(base::TerminationStatus status, 88 void WebContentsViewAndroid::OnTabCrashed(base::TerminationStatus status,
89 int error_code) { 89 int error_code) {
90 RenderViewHostImpl* rvh = static_cast<RenderViewHostImpl*>( 90 RenderViewHostImpl* rvh = static_cast<RenderViewHostImpl*>(
91 web_contents_->GetRenderViewHost()); 91 web_contents_->GetRenderViewHost());
92 if (rvh->media_player_manager()) 92 if (rvh->media_player_manager())
93 rvh->media_player_manager()->DestroyAllMediaPlayers(); 93 rvh->media_player_manager()->DestroyAllMediaPlayers();
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
218 // This is called when we the renderer asks us to take focus back (i.e., it has 218 // This is called when we the renderer asks us to take focus back (i.e., it has
219 // iterated past the last focusable element on the page). 219 // iterated past the last focusable element on the page).
220 void WebContentsViewAndroid::TakeFocus(bool reverse) { 220 void WebContentsViewAndroid::TakeFocus(bool reverse) {
221 if (web_contents_->GetDelegate() && 221 if (web_contents_->GetDelegate() &&
222 web_contents_->GetDelegate()->TakeFocus(web_contents_, reverse)) 222 web_contents_->GetDelegate()->TakeFocus(web_contents_, reverse))
223 return; 223 return;
224 web_contents_->GetRenderWidgetHostView()->Focus(); 224 web_contents_->GetRenderWidgetHostView()->Focus();
225 } 225 }
226 226
227 } // namespace content 227 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/web_contents/web_contents_view_android.h ('k') | content/browser/web_contents/web_contents_view_aura.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698