OLD | NEW |
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 <stddef.h> |
| 8 |
7 #include "base/logging.h" | 9 #include "base/logging.h" |
8 #include "base/mac/foundation_util.h" | 10 #include "base/mac/foundation_util.h" |
9 #include "base/mac/mac_logging.h" | 11 #include "base/mac/mac_logging.h" |
10 #include "chrome/browser/search/search.h" | 12 #include "chrome/browser/search/search.h" |
11 #import "chrome/browser/ui/cocoa/location_bar/autocomplete_text_field.h" | 13 #import "chrome/browser/ui/cocoa/location_bar/autocomplete_text_field.h" |
12 #import "chrome/browser/ui/cocoa/location_bar/location_bar_decoration.h" | 14 #import "chrome/browser/ui/cocoa/location_bar/location_bar_decoration.h" |
13 #import "extensions/common/feature_switch.h" | 15 #import "extensions/common/feature_switch.h" |
14 #include "grit/theme_resources.h" | 16 #include "grit/theme_resources.h" |
15 #import "third_party/mozilla/NSPasteboard+Utils.h" | 17 #import "third_party/mozilla/NSPasteboard+Utils.h" |
16 #import "ui/base/cocoa/appkit_utils.h" | 18 #import "ui/base/cocoa/appkit_utils.h" |
(...skipping 651 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
668 | 670 |
669 - (void)handleFocusEvent:(NSEvent*)event | 671 - (void)handleFocusEvent:(NSEvent*)event |
670 ofView:(AutocompleteTextField*)controlView { | 672 ofView:(AutocompleteTextField*)controlView { |
671 if ([controlView observer]) { | 673 if ([controlView observer]) { |
672 const bool controlDown = ([event modifierFlags] & NSControlKeyMask) != 0; | 674 const bool controlDown = ([event modifierFlags] & NSControlKeyMask) != 0; |
673 [controlView observer]->OnSetFocus(controlDown); | 675 [controlView observer]->OnSetFocus(controlDown); |
674 } | 676 } |
675 } | 677 } |
676 | 678 |
677 @end | 679 @end |
OLD | NEW |