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

Side by Side Diff: chrome/browser/ui/cocoa/location_bar/autocomplete_text_field_cell.mm

Issue 187603007: Rename IDR_OMNIBOX_BORDER_AND_SHADOW_* to IDR_TEXTFIELD_*. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rename IDR_OMNIBOX_BORDER_AND_SHADOW_* to IDR_TEXTFIELD_*. Created 6 years, 9 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
« no previous file with comments | « chrome/app/theme/theme_resources.grd ('k') | chrome/browser/ui/gtk/location_bar_view_gtk.cc » ('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) 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 #import "chrome/browser/ui/cocoa/location_bar/autocomplete_text_field_cell.h" 5 #import "chrome/browser/ui/cocoa/location_bar/autocomplete_text_field_cell.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "base/mac/foundation_util.h" 8 #include "base/mac/foundation_util.h"
9 #include "base/mac/mac_logging.h" 9 #include "base/mac/mac_logging.h"
10 #include "chrome/browser/search/search.h" 10 #include "chrome/browser/search/search.h"
(...skipping 22 matching lines...) Expand all
33 33
34 // The amount of padding on either side reserved for drawing 34 // The amount of padding on either side reserved for drawing
35 // decorations. [Views has |kItemPadding| == 3.] 35 // decorations. [Views has |kItemPadding| == 3.]
36 const CGFloat kDecorationHorizontalPad = 3.0; 36 const CGFloat kDecorationHorizontalPad = 3.0;
37 37
38 NSString* const kButtonDecorationKey = @"ButtonDecoration"; 38 NSString* const kButtonDecorationKey = @"ButtonDecoration";
39 39
40 const ui::NinePartImageIds kPopupBorderImageIds = 40 const ui::NinePartImageIds kPopupBorderImageIds =
41 IMAGE_GRID(IDR_OMNIBOX_POPUP_BORDER_AND_SHADOW); 41 IMAGE_GRID(IDR_OMNIBOX_POPUP_BORDER_AND_SHADOW);
42 42
43 const ui::NinePartImageIds kNormalBorderImageIds = 43 const ui::NinePartImageIds kNormalBorderImageIds = IMAGE_GRID(IDR_TEXTFIELD);
44 IMAGE_GRID(IDR_OMNIBOX_BORDER_AND_SHADOW);
45 44
46 // How long to wait for mouse-up on the location icon before assuming 45 // How long to wait for mouse-up on the location icon before assuming
47 // that the user wants to drag. 46 // that the user wants to drag.
48 const NSTimeInterval kLocationIconDragTimeout = 0.25; 47 const NSTimeInterval kLocationIconDragTimeout = 0.25;
49 48
50 // Calculate the positions for a set of decorations. |frame| is the 49 // Calculate the positions for a set of decorations. |frame| is the
51 // overall frame to do layout in, |remaining_frame| will get the 50 // overall frame to do layout in, |remaining_frame| will get the
52 // left-over space. |all_decorations| is the set of decorations to 51 // left-over space. |all_decorations| is the set of decorations to
53 // lay out, |decorations| will be set to the decorations which are 52 // lay out, |decorations| will be set to the decorations which are
54 // visible and which fit, in the same order as |all_decorations|, 53 // visible and which fit, in the same order as |all_decorations|,
(...skipping 791 matching lines...) Expand 10 before | Expand all | Expand 10 after
846 focusEvent_.reset([event retain]); 845 focusEvent_.reset([event retain]);
847 return; 846 return;
848 } 847 }
849 } 848 }
850 849
851 // Handle event immediately. 850 // Handle event immediately.
852 [self focusNotificationFor:event ofView:controlView]; 851 [self focusNotificationFor:event ofView:controlView];
853 } 852 }
854 853
855 @end 854 @end
OLDNEW
« no previous file with comments | « chrome/app/theme/theme_resources.grd ('k') | chrome/browser/ui/gtk/location_bar_view_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698