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

Side by Side Diff: chrome/browser/autocomplete/autocomplete_edit_view_mac.h

Issue 6602070: Port autocomplete_edit_view_browsertest.cc to Mac. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix PrimarySelection test. Created 9 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
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 #ifndef CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_EDIT_VIEW_MAC_H_ 5 #ifndef CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_EDIT_VIEW_MAC_H_
6 #define CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_EDIT_VIEW_MAC_H_ 6 #define CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_EDIT_VIEW_MAC_H_
7 #pragma once 7 #pragma once
8 8
9 #import <Cocoa/Cocoa.h> 9 #import <Cocoa/Cocoa.h>
10 10
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 virtual NSRange SelectionRangeForProposedRange(NSRange proposed_range); 92 virtual NSRange SelectionRangeForProposedRange(NSRange proposed_range);
93 virtual void OnControlKeyChanged(bool pressed); 93 virtual void OnControlKeyChanged(bool pressed);
94 virtual bool CanCopy(); 94 virtual bool CanCopy();
95 virtual void CopyToPasteboard(NSPasteboard* pboard); 95 virtual void CopyToPasteboard(NSPasteboard* pboard);
96 virtual void OnPaste(); 96 virtual void OnPaste();
97 virtual bool CanPasteAndGo(); 97 virtual bool CanPasteAndGo();
98 virtual int GetPasteActionStringId(); 98 virtual int GetPasteActionStringId();
99 virtual void OnPasteAndGo(); 99 virtual void OnPasteAndGo();
100 virtual void OnFrameChanged(); 100 virtual void OnFrameChanged();
101 virtual void OnDidBeginEditing(); 101 virtual void OnDidBeginEditing();
102 virtual void OnBeforeChange();
102 virtual void OnDidChange(); 103 virtual void OnDidChange();
103 virtual void OnDidEndEditing(); 104 virtual void OnDidEndEditing();
104 virtual bool OnDoCommandBySelector(SEL cmd); 105 virtual bool OnDoCommandBySelector(SEL cmd);
105 virtual void OnSetFocus(bool control_down); 106 virtual void OnSetFocus(bool control_down);
106 virtual void OnKillFocus(); 107 virtual void OnKillFocus();
107 108
108 // Helper for LocationBarViewMac. Optionally selects all in |field_|. 109 // Helper for LocationBarViewMac. Optionally selects all in |field_|.
109 void FocusLocation(bool select_all); 110 void FocusLocation(bool select_all);
110 111
111 // Helper to get appropriate contents from |clipboard|. Returns 112 // Helper to get appropriate contents from |clipboard|. Returns
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
214 // Was the delete key pressed with an empty selection at the end of the edit? 215 // Was the delete key pressed with an empty selection at the end of the edit?
215 bool delete_at_end_pressed_; 216 bool delete_at_end_pressed_;
216 217
217 // The maximum/standard line height for the displayed text. 218 // The maximum/standard line height for the displayed text.
218 CGFloat line_height_; 219 CGFloat line_height_;
219 220
220 DISALLOW_COPY_AND_ASSIGN(AutocompleteEditViewMac); 221 DISALLOW_COPY_AND_ASSIGN(AutocompleteEditViewMac);
221 }; 222 };
222 223
223 #endif // CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_EDIT_VIEW_MAC_H_ 224 #endif // CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_EDIT_VIEW_MAC_H_
OLDNEW
« no previous file with comments | « chrome/browser/autocomplete/autocomplete_edit_view_gtk.cc ('k') | chrome/browser/autocomplete/autocomplete_edit_view_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698