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

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

Issue 8002005: Removed sending of the following IPC messages from chrome and added API's on the RenderViewHost (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 3 months 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 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 #include "chrome/common/chrome_notification_types.h" 77 #include "chrome/common/chrome_notification_types.h"
78 #include "chrome/common/chrome_switches.h" 78 #include "chrome/common/chrome_switches.h"
79 #include "chrome/common/pref_names.h" 79 #include "chrome/common/pref_names.h"
80 #include "content/browser/download/download_manager.h" 80 #include "content/browser/download/download_manager.h"
81 #include "content/browser/renderer_host/render_view_host.h" 81 #include "content/browser/renderer_host/render_view_host.h"
82 #include "content/browser/renderer_host/render_widget_host_view.h" 82 #include "content/browser/renderer_host/render_widget_host_view.h"
83 #include "content/browser/tab_contents/tab_contents.h" 83 #include "content/browser/tab_contents/tab_contents.h"
84 #include "content/browser/tab_contents/tab_contents_view.h" 84 #include "content/browser/tab_contents/tab_contents_view.h"
85 #include "content/common/native_web_keyboard_event.h" 85 #include "content/common/native_web_keyboard_event.h"
86 #include "content/common/notification_service.h" 86 #include "content/common/notification_service.h"
87 #include "content/common/view_messages.h"
88 #include "grit/chromium_strings.h" 87 #include "grit/chromium_strings.h"
89 #include "grit/generated_resources.h" 88 #include "grit/generated_resources.h"
90 #include "grit/theme_resources.h" 89 #include "grit/theme_resources.h"
91 #include "grit/theme_resources_standard.h" 90 #include "grit/theme_resources_standard.h"
92 #include "grit/ui_resources.h" 91 #include "grit/ui_resources.h"
93 #include "ui/base/gtk/gtk_floating_container.h" 92 #include "ui/base/gtk/gtk_floating_container.h"
94 #include "ui/base/gtk/gtk_hig_constants.h" 93 #include "ui/base/gtk/gtk_hig_constants.h"
95 #include "ui/base/keycodes/keyboard_codes.h" 94 #include "ui/base/keycodes/keyboard_codes.h"
96 #include "ui/base/l10n/l10n_util.h" 95 #include "ui/base/l10n/l10n_util.h"
97 #include "ui/gfx/gtk_util.h" 96 #include "ui/gfx/gtk_util.h"
(...skipping 1290 matching lines...) Expand 10 before | Expand all | Expand 10 after
1388 // When the window moves, we'll get multiple configure-event signals. We can 1387 // When the window moves, we'll get multiple configure-event signals. We can
1389 // also get events when the bounds haven't changed, but the window's stacking 1388 // also get events when the bounds haven't changed, but the window's stacking
1390 // has, which we aren't interested in. http://crbug.com/70125 1389 // has, which we aren't interested in. http://crbug.com/70125
1391 if (bounds == bounds_) 1390 if (bounds == bounds_)
1392 return FALSE; 1391 return FALSE;
1393 1392
1394 GetLocationBar()->location_entry()->ClosePopup(); 1393 GetLocationBar()->location_entry()->ClosePopup();
1395 1394
1396 TabContentsWrapper* tab = GetDisplayedTab(); 1395 TabContentsWrapper* tab = GetDisplayedTab();
1397 if (tab) { 1396 if (tab) {
1398 RenderViewHost* rvh = tab->tab_contents()->render_view_host(); 1397 tab->tab_contents()->render_view_host()->NotifyMoveOrResizeStarted();
1399 rvh->Send(new ViewMsg_MoveOrResizeStarted(rvh->routing_id()));
1400 } 1398 }
1401 1399
1402 if (bounds_.size() != bounds.size()) 1400 if (bounds_.size() != bounds.size())
1403 OnSizeChanged(bounds.width(), bounds.height()); 1401 OnSizeChanged(bounds.width(), bounds.height());
1404 1402
1405 // We update |bounds_| but not |restored_bounds_| here. The latter needs 1403 // We update |bounds_| but not |restored_bounds_| here. The latter needs
1406 // to be updated conditionally when the window is non-maximized and non- 1404 // to be updated conditionally when the window is non-maximized and non-
1407 // fullscreen, but whether those state updates have been processed yet is 1405 // fullscreen, but whether those state updates have been processed yet is
1408 // window-manager specific. We update |restored_bounds_| in the debounced 1406 // window-manager specific. We update |restored_bounds_| in the debounced
1409 // handler below, after the window state has been updated. 1407 // handler below, after the window state has been updated.
(...skipping 976 matching lines...) Expand 10 before | Expand all | Expand 10 after
2386 // are taken from the WMs' source code. 2384 // are taken from the WMs' source code.
2387 return (wm_name == "Blackbox" || 2385 return (wm_name == "Blackbox" ||
2388 wm_name == "compiz" || 2386 wm_name == "compiz" ||
2389 wm_name == "Compiz" || 2387 wm_name == "Compiz" ||
2390 wm_name == "e16" || // Enlightenment DR16 2388 wm_name == "e16" || // Enlightenment DR16
2391 wm_name == "Metacity" || 2389 wm_name == "Metacity" ||
2392 wm_name == "Mutter" || 2390 wm_name == "Mutter" ||
2393 wm_name == "Openbox" || 2391 wm_name == "Openbox" ||
2394 wm_name == "Xfwm4"); 2392 wm_name == "Xfwm4");
2395 } 2393 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698