| 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/shell_window_gtk.h" | 5 #include "chrome/browser/ui/gtk/extensions/shell_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 209 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 220 } | 220 } |
| 221 | 221 |
| 222 void ShellWindowGtk::FlashFrame(bool flash) { | 222 void ShellWindowGtk::FlashFrame(bool flash) { |
| 223 gtk_window_set_urgency_hint(window_, flash); | 223 gtk_window_set_urgency_hint(window_, flash); |
| 224 } | 224 } |
| 225 | 225 |
| 226 bool ShellWindowGtk::IsAlwaysOnTop() const { | 226 bool ShellWindowGtk::IsAlwaysOnTop() const { |
| 227 return false; | 227 return false; |
| 228 } | 228 } |
| 229 | 229 |
| 230 gfx::Insets ShellWindowGtk::GetFrameInsets() const { |
| 231 return gfx::Insets(); |
| 232 } |
| 233 |
| 230 void ShellWindowGtk::ActiveWindowChanged(GdkWindow* active_window) { | 234 void ShellWindowGtk::ActiveWindowChanged(GdkWindow* active_window) { |
| 231 // Do nothing if we're in the process of closing the browser window. | 235 // Do nothing if we're in the process of closing the browser window. |
| 232 if (!window_) | 236 if (!window_) |
| 233 return; | 237 return; |
| 234 | 238 |
| 235 is_active_ = gtk_widget_get_window(GTK_WIDGET(window_)) == active_window; | 239 is_active_ = gtk_widget_get_window(GTK_WIDGET(window_)) == active_window; |
| 236 } | 240 } |
| 237 | 241 |
| 238 // Callback for the delete event. This event is fired when the user tries to | 242 // Callback for the delete event. This event is fired when the user tries to |
| 239 // close the window (e.g., clicking on the X in the window manager title bar). | 243 // close the window (e.g., clicking on the X in the window manager title bar). |
| (...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 361 return; | 365 return; |
| 362 | 366 |
| 363 draggable_region_.reset(ShellWindow::RawDraggableRegionsToSkRegion(regions)); | 367 draggable_region_.reset(ShellWindow::RawDraggableRegionsToSkRegion(regions)); |
| 364 } | 368 } |
| 365 | 369 |
| 366 // static | 370 // static |
| 367 NativeShellWindow* NativeShellWindow::Create( | 371 NativeShellWindow* NativeShellWindow::Create( |
| 368 ShellWindow* shell_window, const ShellWindow::CreateParams& params) { | 372 ShellWindow* shell_window, const ShellWindow::CreateParams& params) { |
| 369 return new ShellWindowGtk(shell_window, params); | 373 return new ShellWindowGtk(shell_window, params); |
| 370 } | 374 } |
| OLD | NEW |