OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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/autocomplete/autocomplete_edit_view_mac.h" | 5 #include "chrome/browser/autocomplete/autocomplete_edit_view_mac.h" |
6 | 6 |
7 #include <Carbon/Carbon.h> // kVK_Return | 7 #include <Carbon/Carbon.h> // kVK_Return |
| 8 |
| 9 #include "app/clipboard/clipboard.h" |
8 #include "app/gfx/font.h" | 10 #include "app/gfx/font.h" |
9 #include "app/l10n_util_mac.h" | 11 #include "app/l10n_util_mac.h" |
10 #include "app/resource_bundle.h" | 12 #include "app/resource_bundle.h" |
11 #include "base/clipboard.h" | |
12 #import "base/cocoa_protocols_mac.h" | 13 #import "base/cocoa_protocols_mac.h" |
13 #include "base/string_util.h" | 14 #include "base/string_util.h" |
14 #include "base/sys_string_conversions.h" | 15 #include "base/sys_string_conversions.h" |
15 #include "chrome/browser/autocomplete/autocomplete_edit.h" | 16 #include "chrome/browser/autocomplete/autocomplete_edit.h" |
16 #include "chrome/browser/autocomplete/autocomplete_popup_model.h" | 17 #include "chrome/browser/autocomplete/autocomplete_popup_model.h" |
17 #include "chrome/browser/autocomplete/autocomplete_popup_view_mac.h" | 18 #include "chrome/browser/autocomplete/autocomplete_popup_view_mac.h" |
18 #include "chrome/browser/browser_process.h" | 19 #include "chrome/browser/browser_process.h" |
19 #include "chrome/browser/cocoa/event_utils.h" | 20 #include "chrome/browser/cocoa/event_utils.h" |
20 #include "chrome/browser/tab_contents/tab_contents.h" | 21 #include "chrome/browser/tab_contents/tab_contents.h" |
21 #include "grit/generated_resources.h" | 22 #include "grit/generated_resources.h" |
(...skipping 847 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
869 // TODO(shess): Figure out where the selection belongs. On GTK, | 870 // TODO(shess): Figure out where the selection belongs. On GTK, |
870 // it's set to the start of the text. | 871 // it's set to the start of the text. |
871 } | 872 } |
872 | 873 |
873 // Signal that we've lost focus when the window resigns key. | 874 // Signal that we've lost focus when the window resigns key. |
874 - (void)windowDidResignKey:(NSNotification*)notification { | 875 - (void)windowDidResignKey:(NSNotification*)notification { |
875 edit_view_->OnDidResignKey(); | 876 edit_view_->OnDidResignKey(); |
876 } | 877 } |
877 | 878 |
878 @end | 879 @end |
OLD | NEW |