| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 } |
| OLD | NEW |