| OLD | NEW |
| 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/ui/cocoa/omnibox/omnibox_popup_view_mac.h" | 5 #include "chrome/browser/ui/cocoa/omnibox/omnibox_popup_view_mac.h" |
| 6 | 6 |
| 7 #include <cmath> | 7 #include <cmath> |
| 8 | 8 |
| 9 #include "base/stl_util-inl.h" | 9 #include "base/stl_util.h" |
| 10 #include "base/sys_string_conversions.h" | 10 #include "base/sys_string_conversions.h" |
| 11 #include "base/utf_string_conversions.h" | 11 #include "base/utf_string_conversions.h" |
| 12 #include "chrome/browser/autocomplete/autocomplete_edit.h" | 12 #include "chrome/browser/autocomplete/autocomplete_edit.h" |
| 13 #include "chrome/browser/autocomplete/autocomplete_match.h" | 13 #include "chrome/browser/autocomplete/autocomplete_match.h" |
| 14 #include "chrome/browser/autocomplete/autocomplete_popup_model.h" | 14 #include "chrome/browser/autocomplete/autocomplete_popup_model.h" |
| 15 #include "chrome/browser/instant/instant_confirm_dialog.h" | 15 #include "chrome/browser/instant/instant_confirm_dialog.h" |
| 16 #include "chrome/browser/instant/promo_counter.h" | 16 #include "chrome/browser/instant/promo_counter.h" |
| 17 #include "chrome/browser/profiles/profile.h" | 17 #include "chrome/browser/profiles/profile.h" |
| 18 #include "chrome/browser/ui/cocoa/event_utils.h" | 18 #include "chrome/browser/ui/cocoa/event_utils.h" |
| 19 #include "chrome/browser/ui/cocoa/image_utils.h" | 19 #include "chrome/browser/ui/cocoa/image_utils.h" |
| (...skipping 800 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 820 bottomLeftCornerRadius:kPopupRoundingRadius | 820 bottomLeftCornerRadius:kPopupRoundingRadius |
| 821 bottomRightCornerRadius:kPopupRoundingRadius]; | 821 bottomRightCornerRadius:kPopupRoundingRadius]; |
| 822 | 822 |
| 823 // Draw the matrix clipped to our border. | 823 // Draw the matrix clipped to our border. |
| 824 gfx::ScopedNSGraphicsContextSaveGState scopedGState; | 824 gfx::ScopedNSGraphicsContextSaveGState scopedGState; |
| 825 [path addClip]; | 825 [path addClip]; |
| 826 [super drawRect:rect]; | 826 [super drawRect:rect]; |
| 827 } | 827 } |
| 828 | 828 |
| 829 @end | 829 @end |
| OLD | NEW |