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

Side by Side Diff: chrome/browser/views/frame/browser_view.cc

Issue 155334: Convert some stuff to string16 so the toolkit_views build can build again (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 years, 5 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
« no previous file with comments | « chrome/browser/gtk/tabs/tab_renderer_gtk.cc ('k') | chrome/browser/views/tabs/tab_2.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2006-2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2009 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/views/frame/browser_view.h" 5 #include "chrome/browser/views/frame/browser_view.h"
6 6
7 #if defined(OS_LINUX) 7 #if defined(OS_LINUX)
8 #include <gtk/gtk.h> 8 #include <gtk/gtk.h>
9 #endif 9 #endif
10 10
(...skipping 1094 matching lines...) Expand 10 before | Expand all | Expand 10 after
1105 1105
1106 bool BrowserView::CanMaximize() const { 1106 bool BrowserView::CanMaximize() const {
1107 return true; 1107 return true;
1108 } 1108 }
1109 1109
1110 bool BrowserView::IsModal() const { 1110 bool BrowserView::IsModal() const {
1111 return false; 1111 return false;
1112 } 1112 }
1113 1113
1114 std::wstring BrowserView::GetWindowTitle() const { 1114 std::wstring BrowserView::GetWindowTitle() const {
1115 return browser_->GetCurrentPageTitle(); 1115 return UTF16ToWideHack(browser_->GetCurrentPageTitle());
1116 } 1116 }
1117 1117
1118 views::View* BrowserView::GetInitiallyFocusedView() { 1118 views::View* BrowserView::GetInitiallyFocusedView() {
1119 // We set the frame not focus on creation so this should never be called. 1119 // We set the frame not focus on creation so this should never be called.
1120 NOTREACHED(); 1120 NOTREACHED();
1121 return NULL; 1121 return NULL;
1122 } 1122 }
1123 1123
1124 bool BrowserView::ShouldShowWindowTitle() const { 1124 bool BrowserView::ShouldShowWindowTitle() const {
1125 return browser_->SupportsWindowFeature(Browser::FEATURE_TITLEBAR); 1125 return browser_->SupportsWindowFeature(Browser::FEATURE_TITLEBAR);
(...skipping 746 matching lines...) Expand 10 before | Expand all | Expand 10 after
1872 1872
1873 // static 1873 // static
1874 FindBar* BrowserWindow::CreateFindBar(Browser* browser) { 1874 FindBar* BrowserWindow::CreateFindBar(Browser* browser) {
1875 return browser::CreateFindBar(static_cast<BrowserView*>(browser->window())); 1875 return browser::CreateFindBar(static_cast<BrowserView*>(browser->window()));
1876 } 1876 }
1877 1877
1878 // static 1878 // static
1879 void BrowserList::AllBrowsersClosed() { 1879 void BrowserList::AllBrowsersClosed() {
1880 views::Window::CloseAllSecondaryWindows(); 1880 views::Window::CloseAllSecondaryWindows();
1881 } 1881 }
OLDNEW
« no previous file with comments | « chrome/browser/gtk/tabs/tab_renderer_gtk.cc ('k') | chrome/browser/views/tabs/tab_2.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698