| 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/apps/native_app_window_gtk.h" |
| 6 | 6 |
| 7 #include <gdk/gdkx.h> | 7 #include <gdk/gdkx.h> |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/message_loop/message_pump_gtk.h" | 10 #include "base/message_loop/message_pump_gtk.h" |
| 11 #include "base/strings/utf_string_conversions.h" | 11 #include "base/strings/utf_string_conversions.h" |
| 12 #include "chrome/browser/profiles/profile.h" | 12 #include "chrome/browser/profiles/profile.h" |
| 13 #include "chrome/browser/ui/gtk/extensions/extension_keybinding_registry_gtk.h" | 13 #include "chrome/browser/ui/gtk/extensions/extension_keybinding_registry_gtk.h" |
| 14 #include "chrome/browser/ui/gtk/gtk_util.h" | 14 #include "chrome/browser/ui/gtk/gtk_util.h" |
| 15 #include "chrome/browser/ui/gtk/gtk_window_util.h" | 15 #include "chrome/browser/ui/gtk/gtk_window_util.h" |
| (...skipping 597 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 613 } | 613 } |
| 614 | 614 |
| 615 void NativeAppWindowGtk::UpdateDraggableRegions( | 615 void NativeAppWindowGtk::UpdateDraggableRegions( |
| 616 const std::vector<extensions::DraggableRegion>& regions) { | 616 const std::vector<extensions::DraggableRegion>& regions) { |
| 617 // Draggable region is not supported for non-frameless window. | 617 // Draggable region is not supported for non-frameless window. |
| 618 if (!frameless_) | 618 if (!frameless_) |
| 619 return; | 619 return; |
| 620 | 620 |
| 621 draggable_region_.reset(ShellWindow::RawDraggableRegionsToSkRegion(regions)); | 621 draggable_region_.reset(ShellWindow::RawDraggableRegionsToSkRegion(regions)); |
| 622 } | 622 } |
| 623 | |
| 624 // static | |
| 625 NativeAppWindow* NativeAppWindow::Create( | |
| 626 ShellWindow* shell_window, | |
| 627 const ShellWindow::CreateParams& params) { | |
| 628 return new NativeAppWindowGtk(shell_window, params); | |
| 629 } | |
| OLD | NEW |