| OLD | NEW |
| 1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 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 <gdk/gdkkeysyms.h> | 7 #include <gdk/gdkkeysyms.h> |
| 8 | 8 |
| 9 #include <algorithm> | 9 #include <algorithm> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 106 #include "ui/gfx/image/image.h" | 106 #include "ui/gfx/image/image.h" |
| 107 #include "ui/gfx/rect.h" | 107 #include "ui/gfx/rect.h" |
| 108 #include "ui/gfx/screen.h" | 108 #include "ui/gfx/screen.h" |
| 109 #include "ui/gfx/skia_utils_gtk.h" | 109 #include "ui/gfx/skia_utils_gtk.h" |
| 110 | 110 |
| 111 using content::NativeWebKeyboardEvent; | 111 using content::NativeWebKeyboardEvent; |
| 112 using content::SSLStatus; | 112 using content::SSLStatus; |
| 113 using content::WebContents; | 113 using content::WebContents; |
| 114 using web_modal::WebContentsModalDialogHost; | 114 using web_modal::WebContentsModalDialogHost; |
| 115 | 115 |
| 116 #error "The GTK+ port will be deleted later this week. If you are seeing this, y
ou are trying to compile it. Please check your gyp flags for 'use_aura=0' and re
move them." |
| 117 |
| 116 namespace { | 118 namespace { |
| 117 | 119 |
| 118 // The number of milliseconds between loading animation frames. | 120 // The number of milliseconds between loading animation frames. |
| 119 const int kLoadingAnimationFrameTimeMs = 30; | 121 const int kLoadingAnimationFrameTimeMs = 30; |
| 120 | 122 |
| 121 const char* kBrowserWindowKey = "__BROWSER_WINDOW_GTK__"; | 123 const char* kBrowserWindowKey = "__BROWSER_WINDOW_GTK__"; |
| 122 | 124 |
| 123 // While resize areas on Windows are normally the same size as the window | 125 // While resize areas on Windows are normally the same size as the window |
| 124 // borders, our top area is shrunk by 1 px to make it easier to move the window | 126 // borders, our top area is shrunk by 1 px to make it easier to move the window |
| 125 // around with our thinner top grabbable strip. (Incidentally, our side and | 127 // around with our thinner top grabbable strip. (Incidentally, our side and |
| (...skipping 2249 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2375 BrowserWindowGtk* browser_window_gtk = new BrowserWindowGtk(browser); | 2377 BrowserWindowGtk* browser_window_gtk = new BrowserWindowGtk(browser); |
| 2376 browser_window_gtk->Init(); | 2378 browser_window_gtk->Init(); |
| 2377 return browser_window_gtk; | 2379 return browser_window_gtk; |
| 2378 } | 2380 } |
| 2379 | 2381 |
| 2380 // static | 2382 // static |
| 2381 chrome::HostDesktopType BrowserWindow::AdjustHostDesktopType( | 2383 chrome::HostDesktopType BrowserWindow::AdjustHostDesktopType( |
| 2382 chrome::HostDesktopType desktop_type) { | 2384 chrome::HostDesktopType desktop_type) { |
| 2383 return desktop_type; | 2385 return desktop_type; |
| 2384 } | 2386 } |
| OLD | NEW |