Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(41)

Side by Side Diff: chrome/browser/ui/gtk/browser_window_gtk.cc

Issue 8595003: Have panels respond to changes in work area on Linux. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Move observers into their own header files. Created 9 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 <dlfcn.h> 9 #include <dlfcn.h>
10 #include <string> 10 #include <string>
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 #include "content/public/browser/native_web_keyboard_event.h" 88 #include "content/public/browser/native_web_keyboard_event.h"
89 #include "grit/chromium_strings.h" 89 #include "grit/chromium_strings.h"
90 #include "grit/generated_resources.h" 90 #include "grit/generated_resources.h"
91 #include "grit/theme_resources.h" 91 #include "grit/theme_resources.h"
92 #include "grit/theme_resources_standard.h" 92 #include "grit/theme_resources_standard.h"
93 #include "grit/ui_resources.h" 93 #include "grit/ui_resources.h"
94 #include "ui/base/gtk/gtk_floating_container.h" 94 #include "ui/base/gtk/gtk_floating_container.h"
95 #include "ui/base/gtk/gtk_hig_constants.h" 95 #include "ui/base/gtk/gtk_hig_constants.h"
96 #include "ui/base/keycodes/keyboard_codes.h" 96 #include "ui/base/keycodes/keyboard_codes.h"
97 #include "ui/base/l10n/l10n_util.h" 97 #include "ui/base/l10n/l10n_util.h"
98 #include "ui/base/x/active_window_watcher_x.h"
98 #include "ui/gfx/gtk_util.h" 99 #include "ui/gfx/gtk_util.h"
99 #include "ui/gfx/rect.h" 100 #include "ui/gfx/rect.h"
100 #include "ui/gfx/skia_utils_gtk.h" 101 #include "ui/gfx/skia_utils_gtk.h"
101 102
102 namespace { 103 namespace {
103 104
104 // The number of milliseconds between loading animation frames. 105 // The number of milliseconds between loading animation frames.
105 const int kLoadingAnimationFrameTimeMs = 30; 106 const int kLoadingAnimationFrameTimeMs = 30;
106 107
107 // Minimal height of devotools pane or content pane when devtools are docked 108 // Minimal height of devotools pane or content pane when devtools are docked
(...skipping 2298 matching lines...) Expand 10 before | Expand all | Expand 10 after
2406 wm_type == ui::WM_OPENBOX || 2407 wm_type == ui::WM_OPENBOX ||
2407 wm_type == ui::WM_XFWM4); 2408 wm_type == ui::WM_XFWM4);
2408 } 2409 }
2409 2410
2410 // static 2411 // static
2411 BrowserWindow* BrowserWindow::CreateBrowserWindow(Browser* browser) { 2412 BrowserWindow* BrowserWindow::CreateBrowserWindow(Browser* browser) {
2412 BrowserWindowGtk* browser_window_gtk = new BrowserWindowGtk(browser); 2413 BrowserWindowGtk* browser_window_gtk = new BrowserWindowGtk(browser);
2413 browser_window_gtk->Init(); 2414 browser_window_gtk->Init();
2414 return browser_window_gtk; 2415 return browser_window_gtk;
2415 } 2416 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698