| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/gtk/extensions/native_app_window_gtk.h" | 5 #include "chrome/browser/ui/gtk/extensions/native_app_window_gtk.h" |
| 6 | 6 |
| 7 #include "base/utf_string_conversions.h" | 7 #include "base/utf_string_conversions.h" |
| 8 #include "chrome/browser/profiles/profile.h" | 8 #include "chrome/browser/profiles/profile.h" |
| 9 #include "chrome/browser/ui/gtk/extensions/extension_keybinding_registry_gtk.h" | 9 #include "chrome/browser/ui/gtk/extensions/extension_keybinding_registry_gtk.h" |
| 10 #include "chrome/browser/ui/gtk/gtk_util.h" | 10 #include "chrome/browser/ui/gtk/gtk_util.h" |
| (...skipping 467 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 478 if (fullscreen) | 478 if (fullscreen) |
| 479 gtk_window_fullscreen(window_); | 479 gtk_window_fullscreen(window_); |
| 480 else | 480 else |
| 481 gtk_window_unfullscreen(window_); | 481 gtk_window_unfullscreen(window_); |
| 482 } | 482 } |
| 483 | 483 |
| 484 bool NativeAppWindowGtk::IsFullscreenOrPending() const { | 484 bool NativeAppWindowGtk::IsFullscreenOrPending() const { |
| 485 return content_thinks_its_fullscreen_; | 485 return content_thinks_its_fullscreen_; |
| 486 } | 486 } |
| 487 | 487 |
| 488 bool NativeAppWindowGtk::IsDetached() const { |
| 489 return false; |
| 490 } |
| 491 |
| 488 void NativeAppWindowGtk::UpdateWindowIcon() { | 492 void NativeAppWindowGtk::UpdateWindowIcon() { |
| 489 Profile* profile = shell_window_->profile(); | 493 Profile* profile = shell_window_->profile(); |
| 490 gfx::Image app_icon = shell_window_->app_icon(); | 494 gfx::Image app_icon = shell_window_->app_icon(); |
| 491 if (!app_icon.IsEmpty()) | 495 if (!app_icon.IsEmpty()) |
| 492 gtk_util::SetWindowIcon(window_, profile, app_icon.ToGdkPixbuf()); | 496 gtk_util::SetWindowIcon(window_, profile, app_icon.ToGdkPixbuf()); |
| 493 else | 497 else |
| 494 gtk_util::SetWindowIcon(window_, profile); | 498 gtk_util::SetWindowIcon(window_, profile); |
| 495 } | 499 } |
| 496 | 500 |
| 497 void NativeAppWindowGtk::UpdateWindowTitle() { | 501 void NativeAppWindowGtk::UpdateWindowTitle() { |
| (...skipping 14 matching lines...) Expand all Loading... |
| 512 | 516 |
| 513 draggable_region_.reset(ShellWindow::RawDraggableRegionsToSkRegion(regions)); | 517 draggable_region_.reset(ShellWindow::RawDraggableRegionsToSkRegion(regions)); |
| 514 } | 518 } |
| 515 | 519 |
| 516 // static | 520 // static |
| 517 NativeAppWindow* NativeAppWindow::Create( | 521 NativeAppWindow* NativeAppWindow::Create( |
| 518 ShellWindow* shell_window, | 522 ShellWindow* shell_window, |
| 519 const ShellWindow::CreateParams& params) { | 523 const ShellWindow::CreateParams& params) { |
| 520 return new NativeAppWindowGtk(shell_window, params); | 524 return new NativeAppWindowGtk(shell_window, params); |
| 521 } | 525 } |
| OLD | NEW |