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

Side by Side Diff: chrome/browser/ui/views/tab_contents/tab_contents_view_touch.cc

Issue 7915008: wstring: convert all SetPageTitle APIs to use string16 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 3 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 "chrome/browser/ui/views/tab_contents/tab_contents_view_touch.h" 5 #include "chrome/browser/ui/views/tab_contents/tab_contents_view_touch.h"
6 6
7 #include <X11/extensions/XInput2.h> 7 #include <X11/extensions/XInput2.h>
8 #undef Status 8 #undef Status
9 9
10 #include "base/string_util.h" 10 #include "base/string_util.h"
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 *out = bounds(); 119 *out = bounds();
120 } 120 }
121 121
122 void TabContentsViewTouch::StartDragging(const WebDropData& drop_data, 122 void TabContentsViewTouch::StartDragging(const WebDropData& drop_data,
123 WebDragOperationsMask ops, 123 WebDragOperationsMask ops,
124 const SkBitmap& image, 124 const SkBitmap& image,
125 const gfx::Point& image_offset) { 125 const gfx::Point& image_offset) {
126 // TODO(anicolao): implement dragging 126 // TODO(anicolao): implement dragging
127 } 127 }
128 128
129 void TabContentsViewTouch::SetPageTitle(const std::wstring& title) { 129 void TabContentsViewTouch::SetPageTitle(const string16& title) {
130 // TODO(anicolao): figure out if there's anything useful to do here 130 // TODO(anicolao): figure out if there's anything useful to do here
131 } 131 }
132 132
133 void TabContentsViewTouch::OnTabCrashed(base::TerminationStatus status, 133 void TabContentsViewTouch::OnTabCrashed(base::TerminationStatus status,
134 int /* error_code */) { 134 int /* error_code */) {
135 if (sad_tab_ != NULL) 135 if (sad_tab_ != NULL)
136 return; 136 return;
137 137
138 sad_tab_.reset(new SadTabView( 138 sad_tab_.reset(new SadTabView(
139 tab_contents_, 139 tab_contents_,
(...skipping 281 matching lines...) Expand 10 before | Expand all | Expand 10 after
421 rwhv->SetSize(size); 421 rwhv->SetSize(size);
422 422
423 if (needs_resize) 423 if (needs_resize)
424 SetFloatingPosition(size); 424 SetFloatingPosition(size);
425 } 425 }
426 426
427 void TabContentsViewTouch::SetFloatingPosition(const gfx::Size& size) { 427 void TabContentsViewTouch::SetFloatingPosition(const gfx::Size& size) {
428 // TODO(anicolao): rework this once we have WebUI views for dialogs 428 // TODO(anicolao): rework this once we have WebUI views for dialogs
429 SetBounds(x(), y(), size.width(), size.height()); 429 SetBounds(x(), y(), size.width(), size.height());
430 } 430 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698