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/browser_window_gtk.h" | 5 #include "chrome/browser/ui/gtk/browser_window_gtk.h" |
6 | 6 |
7 #include <dlfcn.h> | 7 #include <dlfcn.h> |
8 #include <gdk/gdkkeysyms.h> | 8 #include <gdk/gdkkeysyms.h> |
9 | 9 |
10 #include <algorithm> | 10 #include <algorithm> |
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
100 #include "ui/base/l10n/l10n_util.h" | 100 #include "ui/base/l10n/l10n_util.h" |
101 #include "ui/base/resource/resource_bundle.h" | 101 #include "ui/base/resource/resource_bundle.h" |
102 #include "ui/base/x/active_window_watcher_x.h" | 102 #include "ui/base/x/active_window_watcher_x.h" |
103 #include "ui/gfx/gtk_util.h" | 103 #include "ui/gfx/gtk_util.h" |
104 #include "ui/gfx/image/cairo_cached_surface.h" | 104 #include "ui/gfx/image/cairo_cached_surface.h" |
105 #include "ui/gfx/image/image.h" | 105 #include "ui/gfx/image/image.h" |
106 #include "ui/gfx/rect.h" | 106 #include "ui/gfx/rect.h" |
107 #include "ui/gfx/screen.h" | 107 #include "ui/gfx/screen.h" |
108 #include "ui/gfx/skia_utils_gtk.h" | 108 #include "ui/gfx/skia_utils_gtk.h" |
109 | 109 |
| 110 using content::NativeWebKeyboardEvent; |
110 using content::SSLStatus; | 111 using content::SSLStatus; |
111 using content::WebContents; | 112 using content::WebContents; |
112 | 113 |
113 namespace { | 114 namespace { |
114 | 115 |
115 // The number of milliseconds between loading animation frames. | 116 // The number of milliseconds between loading animation frames. |
116 const int kLoadingAnimationFrameTimeMs = 30; | 117 const int kLoadingAnimationFrameTimeMs = 30; |
117 | 118 |
118 // Minimal height of devotools pane or content pane when devtools are docked | 119 // Minimal height of devotools pane or content pane when devtools are docked |
119 // to the browser window. | 120 // to the browser window. |
(...skipping 2465 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2585 wm_type == ui::WM_OPENBOX || | 2586 wm_type == ui::WM_OPENBOX || |
2586 wm_type == ui::WM_XFWM4); | 2587 wm_type == ui::WM_XFWM4); |
2587 } | 2588 } |
2588 | 2589 |
2589 // static | 2590 // static |
2590 BrowserWindow* BrowserWindow::CreateBrowserWindow(Browser* browser) { | 2591 BrowserWindow* BrowserWindow::CreateBrowserWindow(Browser* browser) { |
2591 BrowserWindowGtk* browser_window_gtk = new BrowserWindowGtk(browser); | 2592 BrowserWindowGtk* browser_window_gtk = new BrowserWindowGtk(browser); |
2592 browser_window_gtk->Init(); | 2593 browser_window_gtk->Init(); |
2593 return browser_window_gtk; | 2594 return browser_window_gtk; |
2594 } | 2595 } |
OLD | NEW |