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

Side by Side Diff: chrome/browser/tab_contents/tab_contents_view_gtk.cc

Issue 8490029: GTK: Move code shared by future content/ classes and chrome/ to ui/. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Remove platform_util method. Created 9 years 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
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/tab_contents/tab_contents_view_gtk.h" 5 #include "chrome/browser/tab_contents/tab_contents_view_gtk.h"
6 6
7 #include <gdk/gdk.h> 7 #include <gdk/gdk.h>
8 #include <gdk/gdkkeysyms.h> 8 #include <gdk/gdkkeysyms.h>
9 #include <gtk/gtk.h> 9 #include <gtk/gtk.h>
10 10
11 #include <algorithm> 11 #include <algorithm>
12 12
13 #include "base/string_util.h" 13 #include "base/string_util.h"
14 #include "base/utf_string_conversions.h" 14 #include "base/utf_string_conversions.h"
15 #include "build/build_config.h" 15 #include "build/build_config.h"
16 #include "chrome/browser/tab_contents/render_view_context_menu_gtk.h"
17 #include "chrome/browser/tab_contents/tab_contents_view_wrapper_gtk.h" 16 #include "chrome/browser/tab_contents/tab_contents_view_wrapper_gtk.h"
18 #include "chrome/browser/tab_contents/web_drag_bookmark_handler_gtk.h"
19 #include "chrome/browser/ui/gtk/constrained_window_gtk.h"
20 #include "content/browser/renderer_host/render_view_host.h" 17 #include "content/browser/renderer_host/render_view_host.h"
21 #include "content/browser/renderer_host/render_view_host_factory.h" 18 #include "content/browser/renderer_host/render_view_host_factory.h"
22 #include "content/browser/renderer_host/render_widget_host_view_gtk.h" 19 #include "content/browser/renderer_host/render_widget_host_view_gtk.h"
23 #include "content/browser/tab_contents/interstitial_page.h" 20 #include "content/browser/tab_contents/interstitial_page.h"
24 #include "content/browser/tab_contents/tab_contents.h" 21 #include "content/browser/tab_contents/tab_contents.h"
25 #include "content/browser/tab_contents/tab_contents_delegate.h" 22 #include "content/browser/tab_contents/tab_contents_delegate.h"
26 #include "content/browser/tab_contents/web_drag_dest_gtk.h" 23 #include "content/browser/tab_contents/web_drag_dest_gtk.h"
27 #include "content/browser/tab_contents/web_drag_source_gtk.h" 24 #include "content/browser/tab_contents/web_drag_source_gtk.h"
28 #include "ui/base/gtk/gtk_expanded_container.h" 25 #include "ui/base/gtk/gtk_expanded_container.h"
29 #include "ui/gfx/point.h" 26 #include "ui/gfx/point.h"
(...skipping 378 matching lines...) Expand 10 before | Expand all | Expand 10 after
408 requested_size_ = size; 405 requested_size_ = size;
409 406
410 // We manually tell our RWHV to resize the renderer content. This avoids 407 // We manually tell our RWHV to resize the renderer content. This avoids
411 // spurious resizes from GTK+. 408 // spurious resizes from GTK+.
412 RenderWidgetHostView* rwhv = tab_contents_->GetRenderWidgetHostView(); 409 RenderWidgetHostView* rwhv = tab_contents_->GetRenderWidgetHostView();
413 if (rwhv) 410 if (rwhv)
414 rwhv->SetSize(size); 411 rwhv->SetSize(size);
415 if (tab_contents_->interstitial_page()) 412 if (tab_contents_->interstitial_page())
416 tab_contents_->interstitial_page()->SetSize(size); 413 tab_contents_->interstitial_page()->SetSize(size);
417 } 414 }
OLDNEW
« no previous file with comments | « chrome/browser/tab_contents/tab_contents_view_gtk.h ('k') | chrome/browser/ui/gtk/find_bar_gtk.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698