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

Side by Side Diff: chrome/browser/ui/cocoa/omnibox/omnibox_popup_separator_view.mm

Issue 595283002: Move nsview_additions and hyperlink_text_view to ui/base/cocoa (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 6 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/omnibox/omnibox_popup_separator_view.h" 5 #import "chrome/browser/ui/cocoa/omnibox/omnibox_popup_separator_view.h"
6 6
7 #import "chrome/browser/ui/cocoa/nsview_additions.h"
8 #include "grit/theme_resources.h" 7 #include "grit/theme_resources.h"
8 #import "ui/base/cocoa/nsview_additions.h"
9 #include "ui/base/resource/resource_bundle.h" 9 #include "ui/base/resource/resource_bundle.h"
10 10
11 @implementation OmniboxPopupTopSeparatorView 11 @implementation OmniboxPopupTopSeparatorView
12 12
13 + (CGFloat)preferredHeight { 13 + (CGFloat)preferredHeight {
14 return 1; 14 return 1;
15 } 15 }
16 16
17 - (void)drawRect:(NSRect)rect { 17 - (void)drawRect:(NSRect)rect {
18 NSRect separatorRect = [self bounds]; 18 NSRect separatorRect = [self bounds];
(...skipping 20 matching lines...) Expand all
39 // Draw the shadow. 39 // Draw the shadow.
40 NSImage* shadowImage = 40 NSImage* shadowImage =
41 rb.GetNativeImageNamed(IDR_OVERLAY_DROP_SHADOW).ToNSImage(); 41 rb.GetNativeImageNamed(IDR_OVERLAY_DROP_SHADOW).ToNSImage();
42 [shadowImage drawInRect:bounds 42 [shadowImage drawInRect:bounds
43 fromRect:NSZeroRect 43 fromRect:NSZeroRect
44 operation:NSCompositeSourceOver 44 operation:NSCompositeSourceOver
45 fraction:1.0]; 45 fraction:1.0];
46 } 46 }
47 47
48 @end 48 @end
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698