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

Side by Side Diff: chrome/browser/ui/gtk/autofill/autofill_popup_view_gtk.cc

Issue 10756018: Merge grd files in ui/resources and chrome/app/theme (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase, *_standard.rc Created 8 years, 5 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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 "autofill_popup_view_gtk.h" 5 #include "autofill_popup_view_gtk.h"
6 6
7 #include <gdk/gdkkeysyms.h> 7 #include <gdk/gdkkeysyms.h>
8 8
9 #include "base/i18n/rtl.h" 9 #include "base/i18n/rtl.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
11 #include "base/utf_string_conversions.h" 11 #include "base/utf_string_conversions.h"
12 #include "chrome/browser/autofill/autofill_external_delegate.h" 12 #include "chrome/browser/autofill/autofill_external_delegate.h"
13 #include "chrome/browser/ui/gtk/gtk_util.h" 13 #include "chrome/browser/ui/gtk/gtk_util.h"
14 #include "chrome/browser/ui/gtk/gtk_theme_service.h" 14 #include "chrome/browser/ui/gtk/gtk_theme_service.h"
15 #include "content/public/browser/render_view_host.h" 15 #include "content/public/browser/render_view_host.h"
16 #include "content/public/browser/web_contents.h" 16 #include "content/public/browser/web_contents.h"
17 #include "grit/ui_resources_standard.h" 17 #include "grit/ui_resources.h"
18 #include "third_party/WebKit/Source/WebKit/chromium/public/WebAutofillClient.h" 18 #include "third_party/WebKit/Source/WebKit/chromium/public/WebAutofillClient.h"
19 #include "ui/base/gtk/gtk_compat.h" 19 #include "ui/base/gtk/gtk_compat.h"
20 #include "ui/base/gtk/gtk_hig_constants.h" 20 #include "ui/base/gtk/gtk_hig_constants.h"
21 #include "ui/base/gtk/gtk_windowing.h" 21 #include "ui/base/gtk/gtk_windowing.h"
22 #include "ui/gfx/native_widget_types.h" 22 #include "ui/gfx/native_widget_types.h"
23 #include "ui/gfx/pango_util.h" 23 #include "ui/gfx/pango_util.h"
24 #include "ui/gfx/rect.h" 24 #include "ui/gfx/rect.h"
25 25
26 using WebKit::WebAutofillClient; 26 using WebKit::WebAutofillClient;
27 27
(...skipping 464 matching lines...) Expand 10 before | Expand all | Expand 10 after
492 } 492 }
493 493
494 gfx::Rect delete_icon_bounds = gfx::Rect( 494 gfx::Rect delete_icon_bounds = gfx::Rect(
495 GetPopupRequiredWidth() - kDeleteIconWidth - kIconPadding, 495 GetPopupRequiredWidth() - kDeleteIconWidth - kIconPadding,
496 row_start_y + ((kRowHeight - kDeleteIconHeight) / 2), 496 row_start_y + ((kRowHeight - kDeleteIconHeight) / 2),
497 kDeleteIconWidth, 497 kDeleteIconWidth,
498 kDeleteIconHeight); 498 kDeleteIconHeight);
499 499
500 return delete_icon_bounds.Contains(x, y); 500 return delete_icon_bounds.Contains(x, y);
501 } 501 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/global_error/global_error.cc ('k') | chrome/browser/ui/gtk/avatar_menu_item_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698