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 209 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
220 } | 220 } |
221 | 221 |
222 void NativeAppWindowGtk::FlashFrame(bool flash) { | 222 void NativeAppWindowGtk::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 NativeAppWindowGtk::IsAlwaysOnTop() const { | 226 bool NativeAppWindowGtk::IsAlwaysOnTop() const { |
227 return false; | 227 return false; |
228 } | 228 } |
229 | 229 |
| 230 gfx::Insets NativeAppWindowGtk::GetFrameInsets() const { |
| 231 return gfx::Insets(); |
| 232 } |
| 233 |
230 void NativeAppWindowGtk::ActiveWindowChanged(GdkWindow* active_window) { | 234 void NativeAppWindowGtk::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 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 NativeAppWindow* NativeAppWindow::Create( | 371 NativeAppWindow* NativeAppWindow::Create( |
368 ShellWindow* shell_window, | 372 ShellWindow* shell_window, |
369 const ShellWindow::CreateParams& params) { | 373 const ShellWindow::CreateParams& params) { |
370 return new NativeAppWindowGtk(shell_window, params); | 374 return new NativeAppWindowGtk(shell_window, params); |
371 } | 375 } |
OLD | NEW |