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

Side by Side Diff: chrome/browser/gtk/browser_window_gtk.cc

Issue 39158: Take two at hooking up title bar on linux. (Closed)
Patch Set: rebase Created 11 years, 9 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
« no previous file with comments | « chrome/browser/browser.cc ('k') | no next file » | 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) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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/gtk/browser_window_gtk.h" 5 #include "chrome/browser/gtk/browser_window_gtk.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "base/base_paths_linux.h" 8 #include "base/base_paths_linux.h"
9 #include "base/path_service.h" 9 #include "base/path_service.h"
10 #include "chrome/browser/browser.h" 10 #include "chrome/browser/browser.h"
(...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after
225 225
226 StatusBubble* BrowserWindowGtk::GetStatusBubble() { 226 StatusBubble* BrowserWindowGtk::GetStatusBubble() {
227 return status_bubble_.get(); 227 return status_bubble_.get();
228 } 228 }
229 229
230 void BrowserWindowGtk::SelectedTabToolbarSizeChanged(bool is_animating) { 230 void BrowserWindowGtk::SelectedTabToolbarSizeChanged(bool is_animating) {
231 NOTIMPLEMENTED(); 231 NOTIMPLEMENTED();
232 } 232 }
233 233
234 void BrowserWindowGtk::UpdateTitleBar() { 234 void BrowserWindowGtk::UpdateTitleBar() {
235 NOTIMPLEMENTED(); 235 std::wstring title = browser_->GetCurrentPageTitle();
236 gtk_window_set_title(window_, WideToUTF8(title).c_str());
237 if (browser_->SupportsWindowFeature(Browser::FEATURE_TITLEBAR)) {
238 // If we're showing a title bar, we should update the app icon.
239 NOTIMPLEMENTED();
240 }
236 } 241 }
237 242
238 void BrowserWindowGtk::UpdateLoadingAnimations(bool should_animate) { 243 void BrowserWindowGtk::UpdateLoadingAnimations(bool should_animate) {
239 NOTIMPLEMENTED(); 244 NOTIMPLEMENTED();
240 } 245 }
241 246
242 void BrowserWindowGtk::SetStarredState(bool is_starred) { 247 void BrowserWindowGtk::SetStarredState(bool is_starred) {
243 NOTIMPLEMENTED(); 248 NOTIMPLEMENTED();
244 } 249 }
245 250
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after
393 void BrowserWindowGtk::SetCustomFrame(bool custom_frame) { 398 void BrowserWindowGtk::SetCustomFrame(bool custom_frame) {
394 custom_frame_ = custom_frame; 399 custom_frame_ = custom_frame;
395 if (custom_frame_) { 400 if (custom_frame_) {
396 gtk_container_set_border_width(GTK_CONTAINER(vbox_), 2); 401 gtk_container_set_border_width(GTK_CONTAINER(vbox_), 2);
397 // TODO(port): all the crazy blue title bar, etc. 402 // TODO(port): all the crazy blue title bar, etc.
398 NOTIMPLEMENTED(); 403 NOTIMPLEMENTED();
399 } else { 404 } else {
400 gtk_container_set_border_width(GTK_CONTAINER(vbox_), 0); 405 gtk_container_set_border_width(GTK_CONTAINER(vbox_), 0);
401 } 406 }
402 } 407 }
OLDNEW
« no previous file with comments | « chrome/browser/browser.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698