summaryrefslogtreecommitdiffstats
path: root/content/browser/renderer_host
diff options
context:
space:
mode:
Diffstat (limited to 'content/browser/renderer_host')
-rw-r--r--content/browser/renderer_host/clipboard_message_filter.cc15
-rw-r--r--content/browser/renderer_host/clipboard_message_filter.h12
-rw-r--r--content/browser/renderer_host/clipboard_message_filter_mac.mm3
-rw-r--r--content/browser/renderer_host/database_message_filter.cc47
-rw-r--r--content/browser/renderer_host/database_message_filter.h24
-rw-r--r--content/browser/renderer_host/gtk_im_context_wrapper.cc4
-rw-r--r--content/browser/renderer_host/gtk_im_context_wrapper.h4
-rw-r--r--content/browser/renderer_host/ime_adapter_android.cc7
-rw-r--r--content/browser/renderer_host/java/java_bridge_dispatcher_host.cc4
-rw-r--r--content/browser/renderer_host/java/java_bridge_dispatcher_host.h4
-rw-r--r--content/browser/renderer_host/java/java_bridge_dispatcher_host_manager.cc5
-rw-r--r--content/browser/renderer_host/java/java_bridge_dispatcher_host_manager.h6
-rw-r--r--content/browser/renderer_host/pepper/pepper_truetype_font_list_win.cc2
-rw-r--r--content/browser/renderer_host/render_message_filter.cc4
-rw-r--r--content/browser/renderer_host/render_message_filter.h4
-rw-r--r--content/browser/renderer_host/render_view_host_delegate.cc4
-rw-r--r--content/browser/renderer_host/render_view_host_delegate.h12
-rw-r--r--content/browser/renderer_host/render_view_host_impl.cc40
-rw-r--r--content/browser/renderer_host/render_view_host_impl.h36
-rw-r--r--content/browser/renderer_host/render_view_host_unittest.cc2
-rw-r--r--content/browser/renderer_host/render_widget_host_impl.cc14
-rw-r--r--content/browser/renderer_host/render_widget_host_impl.h10
-rw-r--r--content/browser/renderer_host/render_widget_host_view_android.cc4
-rw-r--r--content/browser/renderer_host/render_widget_host_view_android.h4
-rw-r--r--content/browser/renderer_host/render_widget_host_view_aura.cc21
-rw-r--r--content/browser/renderer_host/render_widget_host_view_aura.h10
-rw-r--r--content/browser/renderer_host/render_widget_host_view_base.cc8
-rw-r--r--content/browser/renderer_host/render_widget_host_view_base.h6
-rw-r--r--content/browser/renderer_host/render_widget_host_view_gtk.cc11
-rw-r--r--content/browser/renderer_host/render_widget_host_view_gtk.h4
-rw-r--r--content/browser/renderer_host/render_widget_host_view_guest.cc5
-rw-r--r--content/browser/renderer_host/render_widget_host_view_guest.h4
-rw-r--r--content/browser/renderer_host/render_widget_host_view_mac.h12
-rw-r--r--content/browser/renderer_host/render_widget_host_view_mac.mm21
-rw-r--r--content/browser/renderer_host/render_widget_host_view_mac_unittest.mm2
-rw-r--r--content/browser/renderer_host/render_widget_host_view_win.cc9
-rw-r--r--content/browser/renderer_host/render_widget_host_view_win.h8
-rw-r--r--content/browser/renderer_host/test_render_view_host.cc2
-rw-r--r--content/browser/renderer_host/test_render_view_host.h4
39 files changed, 209 insertions, 189 deletions
diff --git a/content/browser/renderer_host/clipboard_message_filter.cc b/content/browser/renderer_host/clipboard_message_filter.cc
index ae365d5..6ba95f8 100644
--- a/content/browser/renderer_host/clipboard_message_filter.cc
+++ b/content/browser/renderer_host/clipboard_message_filter.cc
@@ -145,9 +145,10 @@ void ClipboardMessageFilter::OnGetSequenceNumber(ui::ClipboardType type,
*sequence_number = GetClipboard()->GetSequenceNumber(type);
}
-void ClipboardMessageFilter::OnReadAvailableTypes(ui::ClipboardType type,
- std::vector<string16>* types,
- bool* contains_filenames) {
+void ClipboardMessageFilter::OnReadAvailableTypes(
+ ui::ClipboardType type,
+ std::vector<base::string16>* types,
+ bool* contains_filenames) {
GetClipboard()->ReadAvailableTypes(type, types, contains_filenames);
}
@@ -163,7 +164,7 @@ void ClipboardMessageFilter::OnClear(ui::ClipboardType type) {
}
void ClipboardMessageFilter::OnReadText(ui::ClipboardType type,
- string16* result) {
+ base::string16* result) {
GetClipboard()->ReadText(type, result);
}
@@ -173,7 +174,7 @@ void ClipboardMessageFilter::OnReadAsciiText(ui::ClipboardType type,
}
void ClipboardMessageFilter::OnReadHTML(ui::ClipboardType type,
- string16* markup,
+ base::string16* markup,
GURL* url,
uint32* fragment_start,
uint32* fragment_end) {
@@ -224,8 +225,8 @@ void ClipboardMessageFilter::OnReadImageReply(
}
void ClipboardMessageFilter::OnReadCustomData(ui::ClipboardType clipboard_type,
- const string16& type,
- string16* result) {
+ const base::string16& type,
+ base::string16* result) {
GetClipboard()->ReadCustomData(clipboard_type, type, result);
}
diff --git a/content/browser/renderer_host/clipboard_message_filter.h b/content/browser/renderer_host/clipboard_message_filter.h
index 3ae7d1b..dd2784b 100644
--- a/content/browser/renderer_host/clipboard_message_filter.h
+++ b/content/browser/renderer_host/clipboard_message_filter.h
@@ -39,12 +39,12 @@ class ClipboardMessageFilter : public BrowserMessageFilter {
bool* result);
void OnClear(ui::ClipboardType type);
void OnReadAvailableTypes(ui::ClipboardType type,
- std::vector<string16>* types,
+ std::vector<base::string16>* types,
bool* contains_filenames);
- void OnReadText(ui::ClipboardType type, string16* result);
+ void OnReadText(ui::ClipboardType type, base::string16* result);
void OnReadAsciiText(ui::ClipboardType type, std::string* result);
void OnReadHTML(ui::ClipboardType type,
- string16* markup,
+ base::string16* markup,
GURL* url,
uint32* fragment_start,
uint32* fragment_end);
@@ -52,13 +52,13 @@ class ClipboardMessageFilter : public BrowserMessageFilter {
void OnReadImage(ui::ClipboardType type, IPC::Message* reply_msg);
void OnReadImageReply(const SkBitmap& bitmap, IPC::Message* reply_msg);
void OnReadCustomData(ui::ClipboardType clipboard_type,
- const string16& type,
- string16* result);
+ const base::string16& type,
+ base::string16* result);
void OnReadData(const ui::Clipboard::FormatType& format,
std::string* data);
#if defined(OS_MACOSX)
- void OnFindPboardWriteString(const string16& text);
+ void OnFindPboardWriteString(const base::string16& text);
#endif
// We have our own clipboard because we want to access the clipboard on the
diff --git a/content/browser/renderer_host/clipboard_message_filter_mac.mm b/content/browser/renderer_host/clipboard_message_filter_mac.mm
index ee8f5a3..3c59d31 100644
--- a/content/browser/renderer_host/clipboard_message_filter_mac.mm
+++ b/content/browser/renderer_host/clipboard_message_filter_mac.mm
@@ -40,7 +40,8 @@ class WriteFindPboardWrapper {
} // namespace
// Called on the IO thread.
-void ClipboardMessageFilter::OnFindPboardWriteString(const string16& text) {
+void ClipboardMessageFilter::OnFindPboardWriteString(
+ const base::string16& text) {
if (text.length() <= kMaxFindPboardStringLength) {
NSString* nsText = base::SysUTF16ToNSString(text);
if (nsText) {
diff --git a/content/browser/renderer_host/database_message_filter.cc b/content/browser/renderer_host/database_message_filter.cc
index d41be65..55ea305 100644
--- a/content/browser/renderer_host/database_message_filter.cc
+++ b/content/browser/renderer_host/database_message_filter.cc
@@ -113,13 +113,14 @@ bool DatabaseMessageFilter::OnMessageReceived(
DatabaseMessageFilter::~DatabaseMessageFilter() {
}
-void DatabaseMessageFilter::OnDatabaseOpenFile(const string16& vfs_file_name,
- int desired_flags,
- IPC::Message* reply_msg) {
+void DatabaseMessageFilter::OnDatabaseOpenFile(
+ const base::string16& vfs_file_name,
+ int desired_flags,
+ IPC::Message* reply_msg) {
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::FILE));
base::PlatformFile file_handle = base::kInvalidPlatformFileValue;
std::string origin_identifier;
- string16 database_name;
+ base::string16 database_name;
// When in incognito mode, we want to make sure that all DB files are
// removed when the incognito browser context goes away, so we add the
@@ -162,16 +163,18 @@ void DatabaseMessageFilter::OnDatabaseOpenFile(const string16& vfs_file_name,
Send(reply_msg);
}
-void DatabaseMessageFilter::OnDatabaseDeleteFile(const string16& vfs_file_name,
- const bool& sync_dir,
- IPC::Message* reply_msg) {
+void DatabaseMessageFilter::OnDatabaseDeleteFile(
+ const base::string16& vfs_file_name,
+ const bool& sync_dir,
+ IPC::Message* reply_msg) {
DatabaseDeleteFile(vfs_file_name, sync_dir, reply_msg, kNumDeleteRetries);
}
-void DatabaseMessageFilter::DatabaseDeleteFile(const string16& vfs_file_name,
- bool sync_dir,
- IPC::Message* reply_msg,
- int reschedule_count) {
+void DatabaseMessageFilter::DatabaseDeleteFile(
+ const base::string16& vfs_file_name,
+ bool sync_dir,
+ IPC::Message* reply_msg,
+ int reschedule_count) {
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::FILE));
// Return an error if the file name is invalid or if the file could not
@@ -183,8 +186,8 @@ void DatabaseMessageFilter::DatabaseDeleteFile(const string16& vfs_file_name,
// In order to delete a journal file in incognito mode, we only need to
// close the open handle to it that's stored in the database tracker.
if (db_tracker_->IsIncognitoProfile()) {
- const string16 wal_suffix(ASCIIToUTF16("-wal"));
- string16 sqlite_suffix;
+ const base::string16 wal_suffix(ASCIIToUTF16("-wal"));
+ base::string16 sqlite_suffix;
// WAL files can be deleted without having previously been opened.
if (!db_tracker_->HasSavedIncognitoFileHandle(vfs_file_name) &&
@@ -215,7 +218,7 @@ void DatabaseMessageFilter::DatabaseDeleteFile(const string16& vfs_file_name,
}
void DatabaseMessageFilter::OnDatabaseGetFileAttributes(
- const string16& vfs_file_name,
+ const base::string16& vfs_file_name,
IPC::Message* reply_msg) {
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::FILE));
int32 attributes = -1;
@@ -230,7 +233,7 @@ void DatabaseMessageFilter::OnDatabaseGetFileAttributes(
}
void DatabaseMessageFilter::OnDatabaseGetFileSize(
- const string16& vfs_file_name, IPC::Message* reply_msg) {
+ const base::string16& vfs_file_name, IPC::Message* reply_msg) {
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::FILE));
int64 size = 0;
base::FilePath db_file =
@@ -278,8 +281,8 @@ void DatabaseMessageFilter::OnDatabaseGetUsageAndQuota(
void DatabaseMessageFilter::OnDatabaseOpened(
const std::string& origin_identifier,
- const string16& database_name,
- const string16& description,
+ const base::string16& database_name,
+ const base::string16& description,
int64 estimated_size) {
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::FILE));
@@ -299,7 +302,7 @@ void DatabaseMessageFilter::OnDatabaseOpened(
void DatabaseMessageFilter::OnDatabaseModified(
const std::string& origin_identifier,
- const string16& database_name) {
+ const base::string16& database_name) {
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::FILE));
if (!database_connections_.IsDatabaseOpened(
origin_identifier, database_name)) {
@@ -313,7 +316,7 @@ void DatabaseMessageFilter::OnDatabaseModified(
void DatabaseMessageFilter::OnDatabaseClosed(
const std::string& origin_identifier,
- const string16& database_name) {
+ const base::string16& database_name) {
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::FILE));
if (!database_connections_.IsDatabaseOpened(
origin_identifier, database_name)) {
@@ -328,7 +331,7 @@ void DatabaseMessageFilter::OnDatabaseClosed(
void DatabaseMessageFilter::OnHandleSqliteError(
const std::string& origin_identifier,
- const string16& database_name,
+ const base::string16& database_name,
int error) {
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::FILE));
if (!DatabaseUtil::IsValidOriginIdentifier(origin_identifier)) {
@@ -342,7 +345,7 @@ void DatabaseMessageFilter::OnHandleSqliteError(
void DatabaseMessageFilter::OnDatabaseSizeChanged(
const std::string& origin_identifier,
- const string16& database_name,
+ const base::string16& database_name,
int64 database_size) {
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::FILE));
if (database_connections_.IsOriginUsed(origin_identifier)) {
@@ -353,7 +356,7 @@ void DatabaseMessageFilter::OnDatabaseSizeChanged(
void DatabaseMessageFilter::OnDatabaseScheduledForDeletion(
const std::string& origin_identifier,
- const string16& database_name) {
+ const base::string16& database_name) {
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::FILE));
Send(new DatabaseMsg_CloseImmediately(origin_identifier, database_name));
}
diff --git a/content/browser/renderer_host/database_message_filter.h b/content/browser/renderer_host/database_message_filter.h
index 9e168c5..5024335 100644
--- a/content/browser/renderer_host/database_message_filter.h
+++ b/content/browser/renderer_host/database_message_filter.h
@@ -41,15 +41,15 @@ class DatabaseMessageFilter
void RemoveObserver();
// VFS message handlers (file thread)
- void OnDatabaseOpenFile(const string16& vfs_file_name,
+ void OnDatabaseOpenFile(const base::string16& vfs_file_name,
int desired_flags,
IPC::Message* reply_msg);
- void OnDatabaseDeleteFile(const string16& vfs_file_name,
+ void OnDatabaseDeleteFile(const base::string16& vfs_file_name,
const bool& sync_dir,
IPC::Message* reply_msg);
- void OnDatabaseGetFileAttributes(const string16& vfs_file_name,
+ void OnDatabaseGetFileAttributes(const base::string16& vfs_file_name,
IPC::Message* reply_msg);
- void OnDatabaseGetFileSize(const string16& vfs_file_name,
+ void OnDatabaseGetFileSize(const base::string16& vfs_file_name,
IPC::Message* reply_msg);
// Quota message handler (io thread)
@@ -62,26 +62,26 @@ class DatabaseMessageFilter
// Database tracker message handlers (file thread)
void OnDatabaseOpened(const std::string& origin_identifier,
- const string16& database_name,
- const string16& description,
+ const base::string16& database_name,
+ const base::string16& description,
int64 estimated_size);
void OnDatabaseModified(const std::string& origin_identifier,
- const string16& database_name);
+ const base::string16& database_name);
void OnDatabaseClosed(const std::string& origin_identifier,
- const string16& database_name);
+ const base::string16& database_name);
void OnHandleSqliteError(const std::string& origin_identifier,
- const string16& database_name,
+ const base::string16& database_name,
int error);
// DatabaseTracker::Observer callbacks (file thread)
virtual void OnDatabaseSizeChanged(const std::string& origin_identifier,
- const string16& database_name,
+ const base::string16& database_name,
int64 database_size) OVERRIDE;
virtual void OnDatabaseScheduledForDeletion(
const std::string& origin_identifier,
- const string16& database_name) OVERRIDE;
+ const base::string16& database_name) OVERRIDE;
- void DatabaseDeleteFile(const string16& vfs_file_name,
+ void DatabaseDeleteFile(const base::string16& vfs_file_name,
bool sync_dir,
IPC::Message* reply_msg,
int reschedule_count);
diff --git a/content/browser/renderer_host/gtk_im_context_wrapper.cc b/content/browser/renderer_host/gtk_im_context_wrapper.cc
index 7ce6558..d4b7789 100644
--- a/content/browser/renderer_host/gtk_im_context_wrapper.cc
+++ b/content/browser/renderer_host/gtk_im_context_wrapper.cc
@@ -477,7 +477,7 @@ void GtkIMContextWrapper::ConfirmComposition() {
if (host_view_->GetRenderWidgetHost()) {
RenderWidgetHostImpl::From(
host_view_->GetRenderWidgetHost())->ImeConfirmComposition(
- string16(), gfx::Range::InvalidRange(), false);
+ base::string16(), gfx::Range::InvalidRange(), false);
}
// Reset the input method.
@@ -485,7 +485,7 @@ void GtkIMContextWrapper::ConfirmComposition() {
}
}
-void GtkIMContextWrapper::HandleCommit(const string16& text) {
+void GtkIMContextWrapper::HandleCommit(const base::string16& text) {
if (suppress_next_commit_)
return;
diff --git a/content/browser/renderer_host/gtk_im_context_wrapper.h b/content/browser/renderer_host/gtk_im_context_wrapper.h
index 1647df1..8bd027f 100644
--- a/content/browser/renderer_host/gtk_im_context_wrapper.h
+++ b/content/browser/renderer_host/gtk_im_context_wrapper.h
@@ -75,7 +75,7 @@ class GtkIMContextWrapper {
void ProcessInputMethodResult(const GdkEventKey* event, bool filtered);
// Real code of "commit" signal handler.
- void HandleCommit(const string16& text);
+ void HandleCommit(const base::string16& text);
// Real code of "preedit-start" signal handler.
void HandlePreeditStart();
@@ -180,7 +180,7 @@ class GtkIMContextWrapper {
// Stores a copy of the most recent commit text received by commit signal
// handler.
- string16 commit_text_;
+ base::string16 commit_text_;
// If it's true then the next "commit" signal will be suppressed.
// It's only used to workaround http://crbug.com/50485.
diff --git a/content/browser/renderer_host/ime_adapter_android.cc b/content/browser/renderer_host/ime_adapter_android.cc
index 9e7fe47..92d972f 100644
--- a/content/browser/renderer_host/ime_adapter_android.cc
+++ b/content/browser/renderer_host/ime_adapter_android.cc
@@ -136,7 +136,7 @@ void ImeAdapterAndroid::SetComposingText(JNIEnv* env, jobject, jstring text,
if (!rwhi)
return;
- string16 text16 = ConvertJavaStringToUTF16(env, text);
+ base::string16 text16 = ConvertJavaStringToUTF16(env, text);
std::vector<blink::WebCompositionUnderline> underlines;
underlines.push_back(
blink::WebCompositionUnderline(0, text16.length(), SK_ColorBLACK,
@@ -155,7 +155,7 @@ void ImeAdapterAndroid::CommitText(JNIEnv* env, jobject, jstring text) {
if (!rwhi)
return;
- string16 text16 = ConvertJavaStringToUTF16(env, text);
+ base::string16 text16 = ConvertJavaStringToUTF16(env, text);
rwhi->ImeConfirmComposition(text16, gfx::Range::InvalidRange(), false);
}
@@ -164,7 +164,8 @@ void ImeAdapterAndroid::FinishComposingText(JNIEnv* env, jobject) {
if (!rwhi)
return;
- rwhi->ImeConfirmComposition(string16(), gfx::Range::InvalidRange(), true);
+ rwhi->ImeConfirmComposition(base::string16(), gfx::Range::InvalidRange(),
+ true);
}
void ImeAdapterAndroid::AttachImeAdapter(JNIEnv* env, jobject java_object) {
diff --git a/content/browser/renderer_host/java/java_bridge_dispatcher_host.cc b/content/browser/renderer_host/java/java_bridge_dispatcher_host.cc
index 6d792e7..562517a 100644
--- a/content/browser/renderer_host/java/java_bridge_dispatcher_host.cc
+++ b/content/browser/renderer_host/java/java_bridge_dispatcher_host.cc
@@ -59,7 +59,7 @@ JavaBridgeDispatcherHost::~JavaBridgeDispatcherHost() {
base::Bind(&CleanUpStubs, stubs_));
}
-void JavaBridgeDispatcherHost::AddNamedObject(const string16& name,
+void JavaBridgeDispatcherHost::AddNamedObject(const base::string16& name,
NPObject* object) {
NPVariant_Param variant_param;
CreateNPVariantParam(object, &variant_param);
@@ -68,7 +68,7 @@ void JavaBridgeDispatcherHost::AddNamedObject(const string16& name,
render_view_host_->GetRoutingID(), name, variant_param));
}
-void JavaBridgeDispatcherHost::RemoveNamedObject(const string16& name) {
+void JavaBridgeDispatcherHost::RemoveNamedObject(const base::string16& name) {
// On receipt of this message, the JavaBridgeDispatcher will drop its
// reference to the corresponding proxy object. When the last reference is
// removed, the proxy object will delete its NPObjectProxy, which will cause
diff --git a/content/browser/renderer_host/java/java_bridge_dispatcher_host.h b/content/browser/renderer_host/java/java_bridge_dispatcher_host.h
index 94ee632..21e47c0 100644
--- a/content/browser/renderer_host/java/java_bridge_dispatcher_host.h
+++ b/content/browser/renderer_host/java/java_bridge_dispatcher_host.h
@@ -42,8 +42,8 @@ class JavaBridgeDispatcherHost
// to |object|, which is manipulated on the background thread. This class
// holds a reference to |object| for the time that the proxy object is bound
// to the window object.
- void AddNamedObject(const string16& name, NPObject* object);
- void RemoveNamedObject(const string16& name);
+ void AddNamedObject(const base::string16& name, NPObject* object);
+ void RemoveNamedObject(const base::string16& name);
// Since this object is ref-counted, it might outlive render_view_host_.
void RenderViewDeleted();
diff --git a/content/browser/renderer_host/java/java_bridge_dispatcher_host_manager.cc b/content/browser/renderer_host/java/java_bridge_dispatcher_host_manager.cc
index f06d9fe..02cf4dc 100644
--- a/content/browser/renderer_host/java/java_bridge_dispatcher_host_manager.cc
+++ b/content/browser/renderer_host/java/java_bridge_dispatcher_host_manager.cc
@@ -31,7 +31,7 @@ JavaBridgeDispatcherHostManager::~JavaBridgeDispatcherHostManager() {
DCHECK_EQ(0U, instances_.size());
}
-void JavaBridgeDispatcherHostManager::AddNamedObject(const string16& name,
+void JavaBridgeDispatcherHostManager::AddNamedObject(const base::string16& name,
NPObject* object) {
// Record this object in a map so that we can add it into RenderViewHosts
// created later. The JavaBridgeDispatcherHost instances will take a
@@ -67,7 +67,8 @@ void JavaBridgeDispatcherHostManager::SetRetainedObjectSet(
}
}
-void JavaBridgeDispatcherHostManager::RemoveNamedObject(const string16& name) {
+void JavaBridgeDispatcherHostManager::RemoveNamedObject(
+ const base::string16& name) {
ObjectMap::iterator iter = objects_.find(name);
if (iter == objects_.end()) {
return;
diff --git a/content/browser/renderer_host/java/java_bridge_dispatcher_host_manager.h b/content/browser/renderer_host/java/java_bridge_dispatcher_host_manager.h
index e3d629a..29523b5 100644
--- a/content/browser/renderer_host/java/java_bridge_dispatcher_host_manager.h
+++ b/content/browser/renderer_host/java/java_bridge_dispatcher_host_manager.h
@@ -34,8 +34,8 @@ class JavaBridgeDispatcherHostManager
// These methods add or remove the object to each JavaBridgeDispatcherHost.
// Each one holds a reference to the NPObject while the object is bound to
// the corresponding RenderView. See JavaBridgeDispatcherHost for details.
- void AddNamedObject(const string16& name, NPObject* object);
- void RemoveNamedObject(const string16& name);
+ void AddNamedObject(const base::string16& name, NPObject* object);
+ void RemoveNamedObject(const base::string16& name);
void OnGetChannelHandle(RenderViewHost* render_view_host,
IPC::Message* reply_msg);
@@ -60,7 +60,7 @@ class JavaBridgeDispatcherHostManager
typedef std::map<RenderViewHost*, scoped_refptr<JavaBridgeDispatcherHost> >
InstanceMap;
InstanceMap instances_;
- typedef std::map<string16, NPObject*> ObjectMap;
+ typedef std::map<base::string16, NPObject*> ObjectMap;
ObjectMap objects_;
JavaObjectWeakGlobalRef retained_object_set_;
diff --git a/content/browser/renderer_host/pepper/pepper_truetype_font_list_win.cc b/content/browser/renderer_host/pepper/pepper_truetype_font_list_win.cc
index e5cdcc6..3530e1e 100644
--- a/content/browser/renderer_host/pepper/pepper_truetype_font_list_win.cc
+++ b/content/browser/renderer_host/pepper/pepper_truetype_font_list_win.cc
@@ -73,7 +73,7 @@ void GetFontsInFamily_SlowBlocking(const std::string& family,
LOGFONTW logfont;
memset(&logfont, 0, sizeof(logfont));
logfont.lfCharSet = DEFAULT_CHARSET;
- string16 family16 = UTF8ToUTF16(family);
+ base::string16 family16 = UTF8ToUTF16(family);
memcpy(&logfont.lfFaceName, &family16[0], sizeof(logfont.lfFaceName));
base::win::ScopedCreateDC hdc(::CreateCompatibleDC(NULL));
::EnumFontFamiliesExW(hdc, &logfont, (FONTENUMPROCW)&EnumFontsInFamilyProc,
diff --git a/content/browser/renderer_host/render_message_filter.cc b/content/browser/renderer_host/render_message_filter.cc
index 3aca534..10a3901 100644
--- a/content/browser/renderer_host/render_message_filter.cc
+++ b/content/browser/renderer_host/render_message_filter.cc
@@ -843,7 +843,7 @@ void RenderMessageFilter::OnGetMonitorColorProfile(std::vector<char>* profile) {
void RenderMessageFilter::OnDownloadUrl(const IPC::Message& message,
const GURL& url,
const Referrer& referrer,
- const string16& suggested_name) {
+ const base::string16& suggested_name) {
scoped_ptr<DownloadSaveInfo> save_info(new DownloadSaveInfo());
save_info->suggested_name = suggested_name;
scoped_ptr<net::URLRequest> request(
@@ -1112,7 +1112,7 @@ void RenderMessageFilter::OnDidLose3DContext(
#if defined(OS_WIN)
void RenderMessageFilter::OnPreCacheFontCharacters(const LOGFONT& font,
- const string16& str) {
+ const base::string16& str) {
// First, comments from FontCacheDispatcher::OnPreCacheFont do apply here too.
// Except that for True Type fonts,
// GetTextMetrics will not load the font in memory.
diff --git a/content/browser/renderer_host/render_message_filter.h b/content/browser/renderer_host/render_message_filter.h
index 526849e..23483a4 100644
--- a/content/browser/renderer_host/render_message_filter.h
+++ b/content/browser/renderer_host/render_message_filter.h
@@ -156,7 +156,7 @@ class RenderMessageFilter : public BrowserMessageFilter {
#if defined(OS_WIN)
void OnPreCacheFontCharacters(const LOGFONT& log_font,
- const string16& characters);
+ const base::string16& characters);
#endif
void OnGetPlugins(bool refresh, IPC::Message* reply_msg);
@@ -190,7 +190,7 @@ class RenderMessageFilter : public BrowserMessageFilter {
void OnDownloadUrl(const IPC::Message& message,
const GURL& url,
const Referrer& referrer,
- const string16& suggested_name);
+ const base::string16& suggested_name);
void OnCheckNotificationPermission(const GURL& source_origin,
int* permission_level);
diff --git a/content/browser/renderer_host/render_view_host_delegate.cc b/content/browser/renderer_host/render_view_host_delegate.cc
index d7b8ba5..4786909 100644
--- a/content/browser/renderer_host/render_view_host_delegate.cc
+++ b/content/browser/renderer_host/render_view_host_delegate.cc
@@ -24,8 +24,8 @@ bool RenderViewHostDelegate::OnMessageReceived(RenderViewHost* render_view_host,
}
bool RenderViewHostDelegate::AddMessageToConsole(
- int32 level, const string16& message, int32 line_no,
- const string16& source_id) {
+ int32 level, const base::string16& message, int32 line_no,
+ const base::string16& source_id) {
return false;
}
diff --git a/content/browser/renderer_host/render_view_host_delegate.h b/content/browser/renderer_host/render_view_host_delegate.h
index f3bf8aa..e5fa672 100644
--- a/content/browser/renderer_host/render_view_host_delegate.h
+++ b/content/browser/renderer_host/render_view_host_delegate.h
@@ -195,7 +195,7 @@ class CONTENT_EXPORT RenderViewHostDelegate {
// The page's title was changed and should be updated.
virtual void UpdateTitle(RenderViewHost* render_view_host,
int32 page_id,
- const string16& title,
+ const base::string16& title,
base::i18n::TextDirection title_direction) {}
// The page's encoding was changed and should be updated.
@@ -281,23 +281,23 @@ class CONTENT_EXPORT RenderViewHostDelegate {
// A javascript message, confirmation or prompt should be shown.
virtual void RunJavaScriptMessage(RenderViewHost* rvh,
- const string16& message,
- const string16& default_prompt,
+ const base::string16& message,
+ const base::string16& default_prompt,
const GURL& frame_url,
JavaScriptMessageType type,
IPC::Message* reply_msg,
bool* did_suppress_message) {}
virtual void RunBeforeUnloadConfirm(RenderViewHost* rvh,
- const string16& message,
+ const base::string16& message,
bool is_reload,
IPC::Message* reply_msg) {}
// A message was added to to the console.
virtual bool AddMessageToConsole(int32 level,
- const string16& message,
+ const base::string16& message,
int32 line_no,
- const string16& source_id);
+ const base::string16& source_id);
// Return a dummy RendererPreferences object that will be used by the renderer
// associated with the owning RenderViewHost.
diff --git a/content/browser/renderer_host/render_view_host_impl.cc b/content/browser/renderer_host/render_view_host_impl.cc
index 92d4fa5..6382706 100644
--- a/content/browser/renderer_host/render_view_host_impl.cc
+++ b/content/browser/renderer_host/render_view_host_impl.cc
@@ -243,7 +243,7 @@ SiteInstance* RenderViewHostImpl::GetSiteInstance() const {
}
bool RenderViewHostImpl::CreateRenderView(
- const string16& frame_name,
+ const base::string16& frame_name,
int opener_route_id,
int32 max_page_id) {
TRACE_EVENT0("renderer_host", "RenderViewHostImpl::CreateRenderView");
@@ -948,8 +948,9 @@ void RenderViewHostImpl::DesktopNotificationPostDisplay(int callback_context) {
callback_context));
}
-void RenderViewHostImpl::DesktopNotificationPostError(int notification_id,
- const string16& message) {
+void RenderViewHostImpl::DesktopNotificationPostError(
+ int notification_id,
+ const base::string16& message) {
Send(new DesktopNotificationMsg_PostError(
GetRoutingID(), notification_id, message));
}
@@ -965,15 +966,15 @@ void RenderViewHostImpl::DesktopNotificationPostClick(int notification_id) {
}
void RenderViewHostImpl::ExecuteJavascriptInWebFrame(
- const string16& frame_xpath,
- const string16& jscript) {
+ const base::string16& frame_xpath,
+ const base::string16& jscript) {
Send(new ViewMsg_ScriptEvalRequest(GetRoutingID(), frame_xpath, jscript,
0, false));
}
void RenderViewHostImpl::ExecuteJavascriptInWebFrameCallbackResult(
- const string16& frame_xpath,
- const string16& jscript,
+ const base::string16& frame_xpath,
+ const base::string16& jscript,
const JavascriptResultCallback& callback) {
static int next_id = 1;
int key = next_id++;
@@ -982,9 +983,10 @@ void RenderViewHostImpl::ExecuteJavascriptInWebFrameCallbackResult(
javascript_callbacks_.insert(std::make_pair(key, callback));
}
-void RenderViewHostImpl::JavaScriptDialogClosed(IPC::Message* reply_msg,
- bool success,
- const string16& user_input) {
+void RenderViewHostImpl::JavaScriptDialogClosed(
+ IPC::Message* reply_msg,
+ bool success,
+ const base::string16& user_input) {
GetProcess()->SetIgnoreInputEvents(false);
bool is_waiting =
is_waiting_for_beforeunload_ack_ || is_waiting_for_unload_ack_;
@@ -1535,7 +1537,7 @@ void RenderViewHostImpl::OnUpdateState(int32 page_id, const PageState& state) {
void RenderViewHostImpl::OnUpdateTitle(
int32 page_id,
- const string16& title,
+ const base::string16& title,
blink::WebTextDirection title_direction) {
if (title.length() > kMaxTitleChars) {
NOTREACHED() << "Renderer sent too many characters in title.";
@@ -1669,7 +1671,7 @@ void RenderViewHostImpl::OnDidChangeScrollOffsetPinningForMainFrame(
void RenderViewHostImpl::OnDidChangeNumWheelEvents(int count) {
}
-void RenderViewHostImpl::OnSelectionChanged(const string16& text,
+void RenderViewHostImpl::OnSelectionChanged(const base::string16& text,
size_t offset,
const gfx::Range& range) {
if (view_)
@@ -1695,8 +1697,8 @@ void RenderViewHostImpl::OnRouteMessageEvent(
}
void RenderViewHostImpl::OnRunJavaScriptMessage(
- const string16& message,
- const string16& default_prompt,
+ const base::string16& message,
+ const base::string16& default_prompt,
const GURL& frame_url,
JavaScriptMessageType type,
IPC::Message* reply_msg) {
@@ -1710,7 +1712,7 @@ void RenderViewHostImpl::OnRunJavaScriptMessage(
}
void RenderViewHostImpl::OnRunBeforeUnloadConfirm(const GURL& frame_url,
- const string16& message,
+ const base::string16& message,
bool is_reload,
IPC::Message* reply_msg) {
// While a JS before unload dialog is showing, tabs in the same process
@@ -1789,9 +1791,9 @@ void RenderViewHostImpl::OnFocusedNodeChanged(bool is_editable_node) {
void RenderViewHostImpl::OnAddMessageToConsole(
int32 level,
- const string16& message,
+ const base::string16& message,
int32 line_no,
- const string16& source_id) {
+ const base::string16& source_id) {
if (delegate_->AddMessageToConsole(level, message, line_no, source_id))
return;
@@ -2076,12 +2078,12 @@ void RenderViewHostImpl::ReloadFrame() {
}
void RenderViewHostImpl::Find(int request_id,
- const string16& search_text,
+ const base::string16& search_text,
const blink::WebFindOptions& options) {
Send(new ViewMsg_Find(GetRoutingID(), request_id, search_text, options));
}
-void RenderViewHostImpl::InsertCSS(const string16& frame_xpath,
+void RenderViewHostImpl::InsertCSS(const base::string16& frame_xpath,
const std::string& css) {
Send(new ViewMsg_CSSInsertRequest(GetRoutingID(), frame_xpath, css));
}
diff --git a/content/browser/renderer_host/render_view_host_impl.h b/content/browser/renderer_host/render_view_host_impl.h
index 424a787..6e02571 100644
--- a/content/browser/renderer_host/render_view_host_impl.h
+++ b/content/browser/renderer_host/render_view_host_impl.h
@@ -133,8 +133,9 @@ class CONTENT_EXPORT RenderViewHostImpl
virtual void DesktopNotificationPermissionRequestDone(
int callback_context) OVERRIDE;
virtual void DesktopNotificationPostDisplay(int callback_context) OVERRIDE;
- virtual void DesktopNotificationPostError(int notification_id,
- const string16& message) OVERRIDE;
+ virtual void DesktopNotificationPostError(
+ int notification_id,
+ const base::string16& message) OVERRIDE;
virtual void DesktopNotificationPostClose(int notification_id,
bool by_user) OVERRIDE;
virtual void DesktopNotificationPostClick(int notification_id) OVERRIDE;
@@ -172,17 +173,18 @@ class CONTENT_EXPORT RenderViewHostImpl
virtual void ExecuteMediaPlayerActionAtLocation(
const gfx::Point& location,
const blink::WebMediaPlayerAction& action) OVERRIDE;
- virtual void ExecuteJavascriptInWebFrame(const string16& frame_xpath,
- const string16& jscript) OVERRIDE;
+ virtual void ExecuteJavascriptInWebFrame(
+ const base::string16& frame_xpath,
+ const base::string16& jscript) OVERRIDE;
virtual void ExecuteJavascriptInWebFrameCallbackResult(
- const string16& frame_xpath,
- const string16& jscript,
+ const base::string16& frame_xpath,
+ const base::string16& jscript,
const JavascriptResultCallback& callback) OVERRIDE;
virtual void ExecutePluginActionAtLocation(
const gfx::Point& location,
const blink::WebPluginAction& action) OVERRIDE;
virtual void ExitFullscreen() OVERRIDE;
- virtual void Find(int request_id, const string16& search_text,
+ virtual void Find(int request_id, const base::string16& search_text,
const blink::WebFindOptions& options) OVERRIDE;
virtual void StopFinding(StopFindAction action) OVERRIDE;
virtual void FirePageBeforeUnload(bool for_cross_site_transition) OVERRIDE;
@@ -192,7 +194,7 @@ class CONTENT_EXPORT RenderViewHostImpl
virtual RenderViewHostDelegate* GetDelegate() const OVERRIDE;
virtual int GetEnabledBindings() const OVERRIDE;
virtual SiteInstance* GetSiteInstance() const OVERRIDE;
- virtual void InsertCSS(const string16& frame_xpath,
+ virtual void InsertCSS(const base::string16& frame_xpath,
const std::string& css) OVERRIDE;
virtual bool IsRenderViewLive() const OVERRIDE;
virtual bool IsSubframe() const OVERRIDE;
@@ -233,7 +235,7 @@ class CONTENT_EXPORT RenderViewHostImpl
// The |opener_route_id| parameter indicates which RenderView created this
// (MSG_ROUTING_NONE if none). If |max_page_id| is larger than -1, the
// RenderView is told to start issuing page IDs at |max_page_id| + 1.
- virtual bool CreateRenderView(const string16& frame_name,
+ virtual bool CreateRenderView(const base::string16& frame_name,
int opener_route_id,
int32 max_page_id);
@@ -348,7 +350,7 @@ class CONTENT_EXPORT RenderViewHostImpl
// closed by the user.
void JavaScriptDialogClosed(IPC::Message* reply_msg,
bool success,
- const string16& user_input);
+ const base::string16& user_input);
// Tells the renderer view to focus the first (last if reverse is true) node.
void SetInitialFocus(bool reverse);
@@ -534,7 +536,7 @@ class CONTENT_EXPORT RenderViewHostImpl
void OnNavigate(const IPC::Message& msg);
void OnUpdateState(int32 page_id, const PageState& state);
void OnUpdateTitle(int32 page_id,
- const string16& title,
+ const base::string16& title,
blink::WebTextDirection title_direction);
void OnUpdateEncoding(const std::string& encoding);
void OnUpdateTargetURL(int32 page_id, const GURL& url);
@@ -556,7 +558,7 @@ class CONTENT_EXPORT RenderViewHostImpl
void OnDidChangeScrollOffsetPinningForMainFrame(bool is_pinned_to_left,
bool is_pinned_to_right);
void OnDidChangeNumWheelEvents(int count);
- void OnSelectionChanged(const string16& text,
+ void OnSelectionChanged(const base::string16& text,
size_t offset,
const gfx::Range& range);
void OnSelectionBoundsChanged(
@@ -564,13 +566,13 @@ class CONTENT_EXPORT RenderViewHostImpl
void OnPasteFromSelectionClipboard();
void OnRouteCloseEvent();
void OnRouteMessageEvent(const ViewMsg_PostMessage_Params& params);
- void OnRunJavaScriptMessage(const string16& message,
- const string16& default_prompt,
+ void OnRunJavaScriptMessage(const base::string16& message,
+ const base::string16& default_prompt,
const GURL& frame_url,
JavaScriptMessageType type,
IPC::Message* reply_msg);
void OnRunBeforeUnloadConfirm(const GURL& frame_url,
- const string16& message,
+ const base::string16& message,
bool is_reload,
IPC::Message* reply_msg);
void OnStartDragging(const DropData& drop_data,
@@ -583,9 +585,9 @@ class CONTENT_EXPORT RenderViewHostImpl
void OnTakeFocus(bool reverse);
void OnFocusedNodeChanged(bool is_editable_node);
void OnAddMessageToConsole(int32 level,
- const string16& message,
+ const base::string16& message,
int32 line_no,
- const string16& source_id);
+ const base::string16& source_id);
void OnUpdateInspectorSetting(const std::string& key,
const std::string& value);
void OnShouldCloseACK(
diff --git a/content/browser/renderer_host/render_view_host_unittest.cc b/content/browser/renderer_host/render_view_host_unittest.cc
index 67e08d2..3196097 100644
--- a/content/browser/renderer_host/render_view_host_unittest.cc
+++ b/content/browser/renderer_host/render_view_host_unittest.cc
@@ -199,7 +199,7 @@ TEST_F(RenderViewHostTest, DragEnteredFileURLsStillBlocked) {
GURL sensitive_file_url = net::FilePathToFileURL(sensitive_file_path);
dropped_data.url = highlighted_file_url;
dropped_data.filenames.push_back(DropData::FileInfo(
- UTF8ToUTF16(dragged_file_path.AsUTF8Unsafe()), string16()));
+ UTF8ToUTF16(dragged_file_path.AsUTF8Unsafe()), base::string16()));
rvh()->DragTargetDragEnter(dropped_data, client_point, screen_point,
blink::WebDragOperationNone, 0);
diff --git a/content/browser/renderer_host/render_widget_host_impl.cc b/content/browser/renderer_host/render_widget_host_impl.cc
index 9cb8922..c792a6d 100644
--- a/content/browser/renderer_host/render_widget_host_impl.cc
+++ b/content/browser/renderer_host/render_widget_host_impl.cc
@@ -1321,7 +1321,7 @@ void RenderWidgetHostImpl::CandidateWindowHidden() {
}
void RenderWidgetHostImpl::ImeSetComposition(
- const string16& text,
+ const base::string16& text,
const std::vector<blink::WebCompositionUnderline>& underlines,
int selection_start,
int selection_end) {
@@ -1330,7 +1330,7 @@ void RenderWidgetHostImpl::ImeSetComposition(
}
void RenderWidgetHostImpl::ImeConfirmComposition(
- const string16& text,
+ const base::string16& text,
const gfx::Range& replacement_range,
bool keep_selection) {
Send(new ViewMsg_ImeConfirmComposition(
@@ -1338,7 +1338,7 @@ void RenderWidgetHostImpl::ImeConfirmComposition(
}
void RenderWidgetHostImpl::ImeCancelComposition() {
- Send(new ViewMsg_ImeSetComposition(GetRoutingID(), string16(),
+ Send(new ViewMsg_ImeSetComposition(GetRoutingID(), base::string16(),
std::vector<blink::WebCompositionUnderline>(), 0, 0));
}
@@ -1442,7 +1442,7 @@ void RenderWidgetHostImpl::OnClose() {
}
void RenderWidgetHostImpl::OnSetTooltipText(
- const string16& tooltip_text,
+ const base::string16& tooltip_text,
WebTextDirection text_direction_hint) {
// First, add directionality marks around tooltip text if necessary.
// A naive solution would be to simply always wrap the text. However, on
@@ -1457,7 +1457,7 @@ void RenderWidgetHostImpl::OnSetTooltipText(
// trying to detect the directionality from the tooltip text rather than the
// element direction. One could argue that would be a preferable solution
// but we use the current approach to match Fx & IE's behavior.
- string16 wrapped_tooltip_text = tooltip_text;
+ base::string16 wrapped_tooltip_text = tooltip_text;
if (!tooltip_text.empty()) {
if (text_direction_hint == blink::WebTextDirectionLeftToRight) {
// Force the tooltip to have LTR directionality.
@@ -1935,11 +1935,11 @@ void RenderWidgetHostImpl::ScrollBackingStoreRect(const gfx::Vector2d& delta,
backing_store->ScrollBackingStore(delta, clip_rect, view_size);
}
-void RenderWidgetHostImpl::Replace(const string16& word) {
+void RenderWidgetHostImpl::Replace(const base::string16& word) {
Send(new InputMsg_Replace(routing_id_, word));
}
-void RenderWidgetHostImpl::ReplaceMisspelling(const string16& word) {
+void RenderWidgetHostImpl::ReplaceMisspelling(const base::string16& word) {
Send(new InputMsg_ReplaceMisspelling(routing_id_, word));
}
diff --git a/content/browser/renderer_host/render_widget_host_impl.h b/content/browser/renderer_host/render_widget_host_impl.h
index 66e2e9a..9b94a44 100644
--- a/content/browser/renderer_host/render_widget_host_impl.h
+++ b/content/browser/renderer_host/render_widget_host_impl.h
@@ -164,8 +164,8 @@ class CONTENT_EXPORT RenderWidgetHostImpl : virtual public RenderWidgetHost,
int tag,
const gfx::Size& page_size,
const gfx::Size& desired_size) OVERRIDE;
- virtual void Replace(const string16& word) OVERRIDE;
- virtual void ReplaceMisspelling(const string16& word) OVERRIDE;
+ virtual void Replace(const base::string16& word) OVERRIDE;
+ virtual void ReplaceMisspelling(const base::string16& word) OVERRIDE;
virtual void ResizeRectChanged(const gfx::Rect& new_rect) OVERRIDE;
virtual void RestartHangMonitorTimeout() OVERRIDE;
virtual void SetIgnoreInputEvents(bool ignore_input_events) OVERRIDE;
@@ -333,7 +333,7 @@ class CONTENT_EXPORT RenderWidgetHostImpl : virtual public RenderWidgetHost,
// * when it receives a "preedit_changed" signal of GtkIMContext (on Linux);
// * when markedText of NSTextInput is called (on Mac).
void ImeSetComposition(
- const string16& text,
+ const base::string16& text,
const std::vector<blink::WebCompositionUnderline>& underlines,
int selection_start,
int selection_end);
@@ -344,7 +344,7 @@ class CONTENT_EXPORT RenderWidgetHostImpl : virtual public RenderWidgetHost,
// (on Windows);
// * when it receives a "commit" signal of GtkIMContext (on Linux);
// * when insertText of NSTextInput is called (on Mac).
- void ImeConfirmComposition(const string16& text,
+ void ImeConfirmComposition(const base::string16& text,
const gfx::Range& replacement_range,
bool keep_selection);
@@ -651,7 +651,7 @@ class CONTENT_EXPORT RenderWidgetHostImpl : virtual public RenderWidgetHost,
void OnClose();
void OnUpdateScreenRectsAck();
void OnRequestMove(const gfx::Rect& pos);
- void OnSetTooltipText(const string16& tooltip_text,
+ void OnSetTooltipText(const base::string16& tooltip_text,
blink::WebTextDirection text_direction_hint);
void OnPaintAtSizeAck(int tag, const gfx::Size& size);
#if defined(OS_MACOSX)
diff --git a/content/browser/renderer_host/render_widget_host_view_android.cc b/content/browser/renderer_host/render_widget_host_view_android.cc
index c8c559b..0c79dbd 100644
--- a/content/browser/renderer_host/render_widget_host_view_android.cc
+++ b/content/browser/renderer_host/render_widget_host_view_android.cc
@@ -524,11 +524,11 @@ void RenderWidgetHostViewAndroid::Destroy() {
}
void RenderWidgetHostViewAndroid::SetTooltipText(
- const string16& tooltip_text) {
+ const base::string16& tooltip_text) {
// Tooltips don't makes sense on Android.
}
-void RenderWidgetHostViewAndroid::SelectionChanged(const string16& text,
+void RenderWidgetHostViewAndroid::SelectionChanged(const base::string16& text,
size_t offset,
const gfx::Range& range) {
RenderWidgetHostViewBase::SelectionChanged(text, offset, range);
diff --git a/content/browser/renderer_host/render_widget_host_view_android.h b/content/browser/renderer_host/render_widget_host_view_android.h
index c01120f..537b87b 100644
--- a/content/browser/renderer_host/render_widget_host_view_android.h
+++ b/content/browser/renderer_host/render_widget_host_view_android.h
@@ -112,8 +112,8 @@ class RenderWidgetHostViewAndroid
virtual void RenderProcessGone(base::TerminationStatus status,
int error_code) OVERRIDE;
virtual void Destroy() OVERRIDE;
- virtual void SetTooltipText(const string16& tooltip_text) OVERRIDE;
- virtual void SelectionChanged(const string16& text,
+ virtual void SetTooltipText(const base::string16& tooltip_text) OVERRIDE;
+ virtual void SelectionChanged(const base::string16& text,
size_t offset,
const gfx::Range& range) OVERRIDE;
virtual void SelectionBoundsChanged(
diff --git a/content/browser/renderer_host/render_widget_host_view_aura.cc b/content/browser/renderer_host/render_widget_host_view_aura.cc
index de6c1ed..27db1a4 100644
--- a/content/browser/renderer_host/render_widget_host_view_aura.cc
+++ b/content/browser/renderer_host/render_widget_host_view_aura.cc
@@ -990,7 +990,8 @@ void RenderWidgetHostViewAura::Destroy() {
delete window_;
}
-void RenderWidgetHostViewAura::SetTooltipText(const string16& tooltip_text) {
+void RenderWidgetHostViewAura::SetTooltipText(
+ const base::string16& tooltip_text) {
tooltip_ = tooltip_text;
aura::Window* root_window = window_->GetRootWindow();
aura::client::TooltipClient* tooltip_client =
@@ -1002,7 +1003,7 @@ void RenderWidgetHostViewAura::SetTooltipText(const string16& tooltip_text) {
}
}
-void RenderWidgetHostViewAura::SelectionChanged(const string16& text,
+void RenderWidgetHostViewAura::SelectionChanged(const base::string16& text,
size_t offset,
const gfx::Range& range) {
RenderWidgetHostViewBase::SelectionChanged(text, offset, range);
@@ -2180,8 +2181,10 @@ void RenderWidgetHostViewAura::SetCompositionText(
}
void RenderWidgetHostViewAura::ConfirmCompositionText() {
- if (host_ && has_composition_text_)
- host_->ImeConfirmComposition(string16(), gfx::Range::InvalidRange(), false);
+ if (host_ && has_composition_text_) {
+ host_->ImeConfirmComposition(base::string16(), gfx::Range::InvalidRange(),
+ false);
+ }
has_composition_text_ = false;
}
@@ -2191,7 +2194,7 @@ void RenderWidgetHostViewAura::ClearCompositionText() {
has_composition_text_ = false;
}
-void RenderWidgetHostViewAura::InsertText(const string16& text) {
+void RenderWidgetHostViewAura::InsertText(const base::string16& text) {
DCHECK(text_input_type_ != ui::TEXT_INPUT_TYPE_NONE);
if (host_)
host_->ImeConfirmComposition(text, gfx::Range::InvalidRange(), false);
@@ -2326,7 +2329,7 @@ bool RenderWidgetHostViewAura::DeleteRange(const gfx::Range& range) {
bool RenderWidgetHostViewAura::GetTextFromRange(
const gfx::Range& range,
- string16* text) const {
+ base::string16* text) const {
gfx::Range selection_text_range(selection_text_offset_,
selection_text_offset_ + selection_text_.length());
@@ -3252,8 +3255,10 @@ bool RenderWidgetHostViewAura::NeedsInputGrab() {
void RenderWidgetHostViewAura::FinishImeCompositionSession() {
if (!has_composition_text_)
return;
- if (host_)
- host_->ImeConfirmComposition(string16(), gfx::Range::InvalidRange(), false);
+ if (host_) {
+ host_->ImeConfirmComposition(base::string16(), gfx::Range::InvalidRange(),
+ false);
+ }
ImeCancelComposition();
}
diff --git a/content/browser/renderer_host/render_widget_host_view_aura.h b/content/browser/renderer_host/render_widget_host_view_aura.h
index 385495a..569209b 100644
--- a/content/browser/renderer_host/render_widget_host_view_aura.h
+++ b/content/browser/renderer_host/render_widget_host_view_aura.h
@@ -192,8 +192,8 @@ class CONTENT_EXPORT RenderWidgetHostViewAura
virtual void RenderProcessGone(base::TerminationStatus status,
int error_code) OVERRIDE;
virtual void Destroy() OVERRIDE;
- virtual void SetTooltipText(const string16& tooltip_text) OVERRIDE;
- virtual void SelectionChanged(const string16& text,
+ virtual void SetTooltipText(const base::string16& tooltip_text) OVERRIDE;
+ virtual void SelectionChanged(const base::string16& text,
size_t offset,
const gfx::Range& range) OVERRIDE;
virtual void SelectionBoundsChanged(
@@ -258,7 +258,7 @@ class CONTENT_EXPORT RenderWidgetHostViewAura
const ui::CompositionText& composition) OVERRIDE;
virtual void ConfirmCompositionText() OVERRIDE;
virtual void ClearCompositionText() OVERRIDE;
- virtual void InsertText(const string16& text) OVERRIDE;
+ virtual void InsertText(const base::string16& text) OVERRIDE;
virtual void InsertChar(char16 ch, int flags) OVERRIDE;
virtual gfx::NativeWindow GetAttachedWindow() const OVERRIDE;
virtual ui::TextInputType GetTextInputType() const OVERRIDE;
@@ -274,7 +274,7 @@ class CONTENT_EXPORT RenderWidgetHostViewAura
virtual bool SetSelectionRange(const gfx::Range& range) OVERRIDE;
virtual bool DeleteRange(const gfx::Range& range) OVERRIDE;
virtual bool GetTextFromRange(const gfx::Range& range,
- string16* text) const OVERRIDE;
+ base::string16* text) const OVERRIDE;
virtual void OnInputMethodChanged() OVERRIDE;
virtual bool ChangeTextDirectionAndLayoutAlignment(
base::i18n::TextDirection direction) OVERRIDE;
@@ -619,7 +619,7 @@ class CONTENT_EXPORT RenderWidgetHostViewAura
bool accept_return_character_;
// Current tooltip text.
- string16 tooltip_;
+ base::string16 tooltip_;
std::vector<base::Closure> on_compositing_did_commit_callbacks_;
diff --git a/content/browser/renderer_host/render_widget_host_view_base.cc b/content/browser/renderer_host/render_widget_host_view_base.cc
index b96182c..8347b6d 100644
--- a/content/browser/renderer_host/render_widget_host_view_base.cc
+++ b/content/browser/renderer_host/render_widget_host_view_base.cc
@@ -118,7 +118,7 @@ LRESULT CALLBACK PluginWrapperWindowProc(HWND window, unsigned int message,
bool IsPluginWrapperWindow(HWND window) {
return gfx::GetClassNameW(window) ==
- string16(kWrapperNativeWindowClassName);
+ base::string16(kWrapperNativeWindowClassName);
}
// Create an intermediate window between the given HWND and its parent.
@@ -421,7 +421,7 @@ float RenderWidgetHostViewBase::GetOverdrawBottomHeight() const {
return 0.f;
}
-void RenderWidgetHostViewBase::SelectionChanged(const string16& text,
+void RenderWidgetHostViewBase::SelectionChanged(const base::string16& text,
size_t offset,
const gfx::Range& range) {
selection_text_ = text;
@@ -439,9 +439,9 @@ void RenderWidgetHostViewBase::SetShowingContextMenu(bool showing) {
showing_context_menu_ = showing;
}
-string16 RenderWidgetHostViewBase::GetSelectedText() const {
+base::string16 RenderWidgetHostViewBase::GetSelectedText() const {
if (!selection_range_.IsValid())
- return string16();
+ return base::string16();
return selection_text_.substr(
selection_range_.GetMin() - selection_text_offset_,
selection_range_.length());
diff --git a/content/browser/renderer_host/render_widget_host_view_base.h b/content/browser/renderer_host/render_widget_host_view_base.h
index 0a6fd1a..eadf92b 100644
--- a/content/browser/renderer_host/render_widget_host_view_base.h
+++ b/content/browser/renderer_host/render_widget_host_view_base.h
@@ -47,7 +47,7 @@ class CONTENT_EXPORT RenderWidgetHostViewBase
// RenderWidgetHostViewPort implementation.
virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE;
- virtual void SelectionChanged(const string16& text,
+ virtual void SelectionChanged(const base::string16& text,
size_t offset,
const gfx::Range& range) OVERRIDE;
virtual void SetBackground(const SkBitmap& background) OVERRIDE;
@@ -56,7 +56,7 @@ class CONTENT_EXPORT RenderWidgetHostViewBase
virtual float GetOverdrawBottomHeight() const OVERRIDE;
virtual bool IsShowingContextMenu() const OVERRIDE;
virtual void SetShowingContextMenu(bool showing_menu) OVERRIDE;
- virtual string16 GetSelectedText() const OVERRIDE;
+ virtual base::string16 GetSelectedText() const OVERRIDE;
virtual bool IsMouseLocked() OVERRIDE;
virtual void UnhandledWheelEvent(
const blink::WebMouseWheelEvent& event) OVERRIDE;
@@ -140,7 +140,7 @@ class CONTENT_EXPORT RenderWidgetHostViewBase
bool showing_context_menu_;
// A buffer containing the text inside and around the current selection range.
- string16 selection_text_;
+ base::string16 selection_text_;
// The offset of the text stored in |selection_text_| relative to the start of
// the web page.
diff --git a/content/browser/renderer_host/render_widget_host_view_gtk.cc b/content/browser/renderer_host/render_widget_host_view_gtk.cc
index 494ba38..18d3180 100644
--- a/content/browser/renderer_host/render_widget_host_view_gtk.cc
+++ b/content/browser/renderer_host/render_widget_host_view_gtk.cc
@@ -929,14 +929,15 @@ void RenderWidgetHostViewGtk::Destroy() {
base::MessageLoop::current()->DeleteSoon(FROM_HERE, this);
}
-void RenderWidgetHostViewGtk::SetTooltipText(const string16& tooltip_text) {
+void RenderWidgetHostViewGtk::SetTooltipText(
+ const base::string16& tooltip_text) {
// Maximum number of characters we allow in a tooltip.
const int kMaxTooltipLength = 8 << 10;
// Clamp the tooltip length to kMaxTooltipLength so that we don't
// accidentally DOS the user with a mega tooltip (since GTK doesn't do
// this itself).
// I filed https://bugzilla.gnome.org/show_bug.cgi?id=604641 upstream.
- const string16 clamped_tooltip =
+ const base::string16 clamped_tooltip =
gfx::TruncateString(tooltip_text, kMaxTooltipLength);
if (clamped_tooltip.empty()) {
@@ -947,7 +948,7 @@ void RenderWidgetHostViewGtk::SetTooltipText(const string16& tooltip_text) {
}
}
-void RenderWidgetHostViewGtk::SelectionChanged(const string16& text,
+void RenderWidgetHostViewGtk::SelectionChanged(const base::string16& text,
size_t offset,
const gfx::Range& range) {
RenderWidgetHostViewBase::SelectionChanged(text, offset, range);
@@ -1347,7 +1348,7 @@ bool RenderWidgetHostViewGtk::LockMouse() {
}
// Clear the tooltip window.
- SetTooltipText(string16());
+ SetTooltipText(base::string16());
// Ensure that the widget center location will be relevant for this mouse
// lock session. It is updated whenever the window geometry moves
@@ -1411,7 +1412,7 @@ bool RenderWidgetHostViewGtk::RetrieveSurrounding(std::string* text,
*text = base::UTF16ToUTF8AndAdjustOffset(
base::StringPiece16(selection_text_), &offset);
- if (offset == string16::npos) {
+ if (offset == base::string16::npos) {
NOTREACHED() << "Invalid offset in UTF16 string.";
return false;
}
diff --git a/content/browser/renderer_host/render_widget_host_view_gtk.h b/content/browser/renderer_host/render_widget_host_view_gtk.h
index 9bb2755..e01181a 100644
--- a/content/browser/renderer_host/render_widget_host_view_gtk.h
+++ b/content/browser/renderer_host/render_widget_host_view_gtk.h
@@ -93,8 +93,8 @@ class CONTENT_EXPORT RenderWidgetHostViewGtk
int error_code) OVERRIDE;
virtual void Destroy() OVERRIDE;
virtual void WillDestroyRenderWidget(RenderWidgetHost* rwh) {}
- virtual void SetTooltipText(const string16& tooltip_text) OVERRIDE;
- virtual void SelectionChanged(const string16& text,
+ virtual void SetTooltipText(const base::string16& tooltip_text) OVERRIDE;
+ virtual void SelectionChanged(const base::string16& text,
size_t offset,
const gfx::Range& range) OVERRIDE;
virtual void SelectionBoundsChanged(
diff --git a/content/browser/renderer_host/render_widget_host_view_guest.cc b/content/browser/renderer_host/render_widget_host_view_guest.cc
index 6299384..49562c8 100644
--- a/content/browser/renderer_host/render_widget_host_view_guest.cc
+++ b/content/browser/renderer_host/render_widget_host_view_guest.cc
@@ -169,7 +169,8 @@ void RenderWidgetHostViewGuest::Destroy() {
platform_view_->Destroy();
}
-void RenderWidgetHostViewGuest::SetTooltipText(const string16& tooltip_text) {
+void RenderWidgetHostViewGuest::SetTooltipText(
+ const base::string16& tooltip_text) {
platform_view_->SetTooltipText(tooltip_text);
}
@@ -324,7 +325,7 @@ void RenderWidgetHostViewGuest::DidUpdateBackingStore(
NOTREACHED();
}
-void RenderWidgetHostViewGuest::SelectionChanged(const string16& text,
+void RenderWidgetHostViewGuest::SelectionChanged(const base::string16& text,
size_t offset,
const gfx::Range& range) {
platform_view_->SelectionChanged(text, offset, range);
diff --git a/content/browser/renderer_host/render_widget_host_view_guest.h b/content/browser/renderer_host/render_widget_host_view_guest.h
index e406b50..ac9fa0e 100644
--- a/content/browser/renderer_host/render_widget_host_view_guest.h
+++ b/content/browser/renderer_host/render_widget_host_view_guest.h
@@ -98,8 +98,8 @@ class CONTENT_EXPORT RenderWidgetHostViewGuest
int error_code) OVERRIDE;
virtual void Destroy() OVERRIDE;
virtual void WillDestroyRenderWidget(RenderWidgetHost* rwh) {}
- virtual void SetTooltipText(const string16& tooltip_text) OVERRIDE;
- virtual void SelectionChanged(const string16& text,
+ virtual void SetTooltipText(const base::string16& tooltip_text) OVERRIDE;
+ virtual void SelectionChanged(const base::string16& text,
size_t offset,
const gfx::Range& range) OVERRIDE;
virtual void SelectionBoundsChanged(
diff --git a/content/browser/renderer_host/render_widget_host_view_mac.h b/content/browser/renderer_host/render_widget_host_view_mac.h
index 4a667b0..ffacd53 100644
--- a/content/browser/renderer_host/render_widget_host_view_mac.h
+++ b/content/browser/renderer_host/render_widget_host_view_mac.h
@@ -108,10 +108,10 @@ class RenderWidgetHostViewMacEditCommandHelper;
NSRange selectedRange_;
// Text to be inserted which was generated by handling a key down event.
- string16 textToBeInserted_;
+ base::string16 textToBeInserted_;
// Marked text which was generated by handling a key down event.
- string16 markedText_;
+ base::string16 markedText_;
// Underline information of the |markedText_|.
std::vector<blink::WebCompositionUnderline> underlines_;
@@ -264,8 +264,8 @@ class RenderWidgetHostViewMac : public RenderWidgetHostViewBase,
virtual void RenderProcessGone(base::TerminationStatus status,
int error_code) OVERRIDE;
virtual void Destroy() OVERRIDE;
- virtual void SetTooltipText(const string16& tooltip_text) OVERRIDE;
- virtual void SelectionChanged(const string16& text,
+ virtual void SetTooltipText(const base::string16& tooltip_text) OVERRIDE;
+ virtual void SelectionChanged(const base::string16& text,
size_t offset,
const gfx::Range& range) OVERRIDE;
virtual void SelectionBoundsChanged(
@@ -338,7 +338,7 @@ class RenderWidgetHostViewMac : public RenderWidgetHostViewBase,
void EnableCoreAnimation();
// Sends completed plugin IME notification and text back to the renderer.
- void PluginImeCompositionCompleted(const string16& text, int plugin_id);
+ void PluginImeCompositionCompleted(const base::string16& text, int plugin_id);
const std::string& selected_text() const { return selected_text_; }
@@ -526,7 +526,7 @@ class RenderWidgetHostViewMac : public RenderWidgetHostViewBase,
bool is_loading_;
// The text to be shown in the tooltip, supplied by the renderer.
- string16 tooltip_text_;
+ base::string16 tooltip_text_;
// Factory used to safely scope delayed calls to ShutdownHost().
base::WeakPtrFactory<RenderWidgetHostViewMac> weak_factory_;
diff --git a/content/browser/renderer_host/render_widget_host_view_mac.mm b/content/browser/renderer_host/render_widget_host_view_mac.mm
index b23b5d0..0069e73 100644
--- a/content/browser/renderer_host/render_widget_host_view_mac.mm
+++ b/content/browser/renderer_host/render_widget_host_view_mac.mm
@@ -1019,7 +1019,8 @@ void RenderWidgetHostViewMac::Destroy() {
// Called from the renderer to tell us what the tooltip text should be. It
// calls us frequently so we need to cache the value to prevent doing a lot
// of repeat work.
-void RenderWidgetHostViewMac::SetTooltipText(const string16& tooltip_text) {
+void RenderWidgetHostViewMac::SetTooltipText(
+ const base::string16& tooltip_text) {
if (tooltip_text != tooltip_text_ && [[cocoa_view_ window] isKeyWindow]) {
tooltip_text_ = tooltip_text;
@@ -1027,7 +1028,7 @@ void RenderWidgetHostViewMac::SetTooltipText(const string16& tooltip_text) {
// Windows; we're just trying to be polite. Don't persist the trimmed
// string, as then the comparison above will always fail and we'll try to
// set it again every single time the mouse moves.
- string16 display_text = tooltip_text_;
+ base::string16 display_text = tooltip_text_;
if (tooltip_text_.length() > kMaxTooltipLength)
display_text = tooltip_text_.substr(0, kMaxTooltipLength);
@@ -1060,7 +1061,7 @@ void RenderWidgetHostViewMac::StopSpeaking() {
// RenderWidgetHostViewCocoa uses the stored selection text,
// which implements NSServicesRequests protocol.
//
-void RenderWidgetHostViewMac::SelectionChanged(const string16& text,
+void RenderWidgetHostViewMac::SelectionChanged(const base::string16& text,
size_t offset,
const gfx::Range& range) {
if (range.is_empty() || text.empty()) {
@@ -1245,7 +1246,7 @@ bool RenderWidgetHostViewMac::PostProcessEventForPluginIme(
}
void RenderWidgetHostViewMac::PluginImeCompositionCompleted(
- const string16& text, int plugin_id) {
+ const base::string16& text, int plugin_id) {
if (render_widget_host_) {
render_widget_host_->Send(new ViewMsg_PluginImeCompositionCompleted(
render_widget_host_->GetRoutingID(), text, plugin_id));
@@ -1745,7 +1746,7 @@ bool RenderWidgetHostViewMac::LockMouse() {
[NSCursor hide];
// Clear the tooltip window.
- SetTooltipText(string16());
+ SetTooltipText(base::string16());
return true;
}
@@ -2399,7 +2400,7 @@ void RenderWidgetHostViewMac::FrameSwapped() {
} else if (oldHasMarkedText && !hasMarkedText_ && !textInserted) {
if (unmarkTextCalled_) {
widgetHost->ImeConfirmComposition(
- string16(), gfx::Range::InvalidRange(), false);
+ base::string16(), gfx::Range::InvalidRange(), false);
} else {
widgetHost->ImeCancelComposition();
}
@@ -3512,7 +3513,7 @@ extern NSString *NSTextInputReplacementRangeAttributeName;
// called in keyEvent: method.
if (!handlingKeyDown_) {
renderWidgetHostView_->render_widget_host_->ImeConfirmComposition(
- string16(), gfx::Range::InvalidRange(), false);
+ base::string16(), gfx::Range::InvalidRange(), false);
} else {
unmarkTextCalled_ = YES;
}
@@ -3750,7 +3751,7 @@ extern NSString *NSTextInputReplacementRangeAttributeName;
if (renderWidgetHostView_->render_widget_host_)
renderWidgetHostView_->render_widget_host_->ImeConfirmComposition(
- string16(), gfx::Range::InvalidRange(), false);
+ base::string16(), gfx::Range::InvalidRange(), false);
[self cancelComposition];
}
@@ -3763,7 +3764,7 @@ extern NSString *NSTextInputReplacementRangeAttributeName;
if (!active) {
[[ComplexTextInputPanel sharedComplexTextInputPanel] cancelComposition];
renderWidgetHostView_->PluginImeCompositionCompleted(
- string16(), focusedPluginIdentifier_);
+ base::string16(), focusedPluginIdentifier_);
}
}
@@ -3798,7 +3799,7 @@ extern NSString *NSTextInputReplacementRangeAttributeName;
if (pluginImeActive_ &&
![[ComplexTextInputPanel sharedComplexTextInputPanel] inComposition]) {
renderWidgetHostView_->PluginImeCompositionCompleted(
- string16(), focusedPluginIdentifier_);
+ base::string16(), focusedPluginIdentifier_);
pluginImeActive_ = NO;
}
}
diff --git a/content/browser/renderer_host/render_widget_host_view_mac_unittest.mm b/content/browser/renderer_host/render_widget_host_view_mac_unittest.mm
index ad37bfd..0a4b795 100644
--- a/content/browser/renderer_host/render_widget_host_view_mac_unittest.mm
+++ b/content/browser/renderer_host/render_widget_host_view_mac_unittest.mm
@@ -318,7 +318,7 @@ TEST_F(RenderWidgetHostViewMacTest, AcceleratorDestroy) {
}
TEST_F(RenderWidgetHostViewMacTest, GetFirstRectForCharacterRangeCaretCase) {
- const string16 kDummyString = UTF8ToUTF16("hogehoge");
+ const base::string16 kDummyString = UTF8ToUTF16("hogehoge");
const size_t kDummyOffset = 0;
gfx::Rect caret_rect(10, 11, 0, 10);
diff --git a/content/browser/renderer_host/render_widget_host_view_win.cc b/content/browser/renderer_host/render_widget_host_view_win.cc
index c07a989..8238a82 100644
--- a/content/browser/renderer_host/render_widget_host_view_win.cc
+++ b/content/browser/renderer_host/render_widget_host_view_win.cc
@@ -836,14 +836,15 @@ void RenderWidgetHostViewWin::Destroy() {
DestroyWindow();
}
-void RenderWidgetHostViewWin::SetTooltipText(const string16& tooltip_text) {
+void RenderWidgetHostViewWin::SetTooltipText(
+ const base::string16& tooltip_text) {
if (!render_widget_host_->is_hidden())
EnsureTooltip();
// Clamp the tooltip length to kMaxTooltipLength so that we don't
// accidentally DOS the user with a mega tooltip (since Windows doesn't seem
// to do this itself).
- const string16 new_tooltip_text =
+ const base::string16 new_tooltip_text =
gfx::TruncateString(tooltip_text, kMaxTooltipLength);
if (new_tooltip_text != tooltip_text_) {
@@ -1017,7 +1018,7 @@ void RenderWidgetHostViewWin::ClearCompositionText() {
NOTIMPLEMENTED();
}
-void RenderWidgetHostViewWin::InsertText(const string16& text) {
+void RenderWidgetHostViewWin::InsertText(const base::string16& text) {
if (!base::win::IsTSFAwareRequired()) {
NOTREACHED();
return;
@@ -1153,7 +1154,7 @@ bool RenderWidgetHostViewWin::DeleteRange(const gfx::Range& range) {
}
bool RenderWidgetHostViewWin::GetTextFromRange(const gfx::Range& range,
- string16* text) const {
+ base::string16* text) const {
if (!base::win::IsTSFAwareRequired()) {
NOTREACHED();
return false;
diff --git a/content/browser/renderer_host/render_widget_host_view_win.h b/content/browser/renderer_host/render_widget_host_view_win.h
index 72b22aa..b9a87bf 100644
--- a/content/browser/renderer_host/render_widget_host_view_win.h
+++ b/content/browser/renderer_host/render_widget_host_view_win.h
@@ -202,7 +202,7 @@ class RenderWidgetHostViewWin
// called by WebContentsImpl before DestroyWindow
virtual void WillWmDestroy() OVERRIDE;
virtual void Destroy() OVERRIDE;
- virtual void SetTooltipText(const string16& tooltip_text) OVERRIDE;
+ virtual void SetTooltipText(const base::string16& tooltip_text) OVERRIDE;
virtual BackingStore* AllocBackingStore(const gfx::Size& size) OVERRIDE;
virtual void CopyFromCompositingSurface(
const gfx::Rect& src_subrect,
@@ -270,7 +270,7 @@ class RenderWidgetHostViewWin
const ui::CompositionText& composition) OVERRIDE;
virtual void ConfirmCompositionText() OVERRIDE;
virtual void ClearCompositionText() OVERRIDE;
- virtual void InsertText(const string16& text) OVERRIDE;
+ virtual void InsertText(const base::string16& text) OVERRIDE;
virtual void InsertChar(char16 ch, int flags) OVERRIDE;
virtual gfx::NativeWindow GetAttachedWindow() const OVERRIDE;
virtual ui::TextInputType GetTextInputType() const OVERRIDE;
@@ -286,7 +286,7 @@ class RenderWidgetHostViewWin
virtual bool SetSelectionRange(const gfx::Range& range) OVERRIDE;
virtual bool DeleteRange(const gfx::Range& range) OVERRIDE;
virtual bool GetTextFromRange(const gfx::Range& range,
- string16* text) const OVERRIDE;
+ base::string16* text) const OVERRIDE;
virtual void OnInputMethodChanged() OVERRIDE;
virtual bool ChangeTextDirectionAndLayoutAlignment(
base::i18n::TextDirection direction) OVERRIDE;
@@ -516,7 +516,7 @@ class RenderWidgetHostViewWin
// Tooltips
// The text to be shown in the tooltip, supplied by the renderer.
- string16 tooltip_text_;
+ base::string16 tooltip_text_;
// The tooltip control hwnd
HWND tooltip_hwnd_;
// Whether or not a tooltip is currently visible. We use this to track
diff --git a/content/browser/renderer_host/test_render_view_host.cc b/content/browser/renderer_host/test_render_view_host.cc
index 19d5958..4dfcf70 100644
--- a/content/browser/renderer_host/test_render_view_host.cc
+++ b/content/browser/renderer_host/test_render_view_host.cc
@@ -269,7 +269,7 @@ TestRenderViewHost::~TestRenderViewHost() {
}
bool TestRenderViewHost::CreateRenderView(
- const string16& frame_name,
+ const base::string16& frame_name,
int opener_route_id,
int32 max_page_id) {
DCHECK(!render_view_created_);
diff --git a/content/browser/renderer_host/test_render_view_host.h b/content/browser/renderer_host/test_render_view_host.h
index 97bcd6e..680f937 100644
--- a/content/browser/renderer_host/test_render_view_host.h
+++ b/content/browser/renderer_host/test_render_view_host.h
@@ -117,7 +117,7 @@ class TestRenderWidgetHostView : public RenderWidgetHostViewBase {
int error_code) OVERRIDE;
virtual void WillDestroyRenderWidget(RenderWidgetHost* rwh) { }
virtual void Destroy() OVERRIDE;
- virtual void SetTooltipText(const string16& tooltip_text) OVERRIDE {}
+ virtual void SetTooltipText(const base::string16& tooltip_text) OVERRIDE {}
virtual void SelectionBoundsChanged(
const ViewHostMsg_SelectionBounds_Params& params) OVERRIDE {}
virtual void ScrollOffsetChanged() OVERRIDE {}
@@ -312,7 +312,7 @@ class TestRenderViewHost
// RenderViewHost overrides --------------------------------------------------
- virtual bool CreateRenderView(const string16& frame_name,
+ virtual bool CreateRenderView(const base::string16& frame_name,
int opener_route_id,
int32 max_page_id) OVERRIDE;
virtual bool IsRenderViewLive() const OVERRIDE;