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

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

Issue 5712003: webkit: use string16 in ContextMenuParams (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: works Created 10 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 | Annotate | Revision Log
« no previous file with comments | « chrome/browser/tab_contents/render_view_context_menu_mac.mm ('k') | webkit/glue/context_menu.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 "base/string_util.h" 11 #include "base/string_util.h"
12 #include "base/utf_string_conversions.h"
12 #include "build/build_config.h" 13 #include "build/build_config.h"
13 #include "chrome/browser/download/download_shelf.h" 14 #include "chrome/browser/download/download_shelf.h"
14 #include "chrome/browser/gtk/browser_window_gtk.h" 15 #include "chrome/browser/gtk/browser_window_gtk.h"
15 #include "chrome/browser/gtk/constrained_window_gtk.h" 16 #include "chrome/browser/gtk/constrained_window_gtk.h"
16 #include "chrome/browser/gtk/gtk_expanded_container.h" 17 #include "chrome/browser/gtk/gtk_expanded_container.h"
17 #include "chrome/browser/gtk/gtk_floating_container.h" 18 #include "chrome/browser/gtk/gtk_floating_container.h"
18 #include "chrome/browser/gtk/gtk_theme_provider.h" 19 #include "chrome/browser/gtk/gtk_theme_provider.h"
19 #include "chrome/browser/gtk/gtk_util.h" 20 #include "chrome/browser/gtk/gtk_util.h"
20 #include "chrome/browser/gtk/sad_tab_gtk.h" 21 #include "chrome/browser/gtk/sad_tab_gtk.h"
21 #include "chrome/browser/gtk/tab_contents_drag_source.h" 22 #include "chrome/browser/gtk/tab_contents_drag_source.h"
(...skipping 389 matching lines...) Expand 10 before | Expand all | Expand 10 after
411 g_value_set_int(&value, child_x); 412 g_value_set_int(&value, child_x);
412 gtk_container_child_set_property(GTK_CONTAINER(floating_container), 413 gtk_container_child_set_property(GTK_CONTAINER(floating_container),
413 widget, "x", &value); 414 widget, "x", &value);
414 415
415 int child_y = std::max((allocation->height - requisition.height) / 2, 0); 416 int child_y = std::max((allocation->height - requisition.height) / 2, 0);
416 g_value_set_int(&value, child_y); 417 g_value_set_int(&value, child_y);
417 gtk_container_child_set_property(GTK_CONTAINER(floating_container), 418 gtk_container_child_set_property(GTK_CONTAINER(floating_container),
418 widget, "y", &value); 419 widget, "y", &value);
419 g_value_unset(&value); 420 g_value_unset(&value);
420 } 421 }
OLDNEW
« no previous file with comments | « chrome/browser/tab_contents/render_view_context_menu_mac.mm ('k') | webkit/glue/context_menu.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698