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 #ifndef CHROME_BROWSER_UI_COCOA_OMNIBOX_OMNIBOX_VIEW_MAC_H_ | 5 #ifndef CHROME_BROWSER_UI_COCOA_OMNIBOX_OMNIBOX_VIEW_MAC_H_ |
6 #define CHROME_BROWSER_UI_COCOA_OMNIBOX_OMNIBOX_VIEW_MAC_H_ | 6 #define CHROME_BROWSER_UI_COCOA_OMNIBOX_OMNIBOX_VIEW_MAC_H_ |
7 | 7 |
8 #import <Cocoa/Cocoa.h> | 8 #import <Cocoa/Cocoa.h> |
9 | 9 |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
(...skipping 15 matching lines...) Expand all Loading... |
26 Profile* profile, | 26 Profile* profile, |
27 CommandUpdater* command_updater, | 27 CommandUpdater* command_updater, |
28 AutocompleteTextField* field); | 28 AutocompleteTextField* field); |
29 ~OmniboxViewMac() override; | 29 ~OmniboxViewMac() override; |
30 | 30 |
31 // OmniboxView: | 31 // OmniboxView: |
32 void SaveStateToTab(content::WebContents* tab) override; | 32 void SaveStateToTab(content::WebContents* tab) override; |
33 void OnTabChanged(const content::WebContents* web_contents) override; | 33 void OnTabChanged(const content::WebContents* web_contents) override; |
34 void ResetTabState(content::WebContents* web_contents) override; | 34 void ResetTabState(content::WebContents* web_contents) override; |
35 void Update() override; | 35 void Update() override; |
36 void UpdatePlaceholderText() override; | |
37 void OpenMatch(const AutocompleteMatch& match, | 36 void OpenMatch(const AutocompleteMatch& match, |
38 WindowOpenDisposition disposition, | 37 WindowOpenDisposition disposition, |
39 const GURL& alternate_nav_url, | 38 const GURL& alternate_nav_url, |
40 const base::string16& pasted_text, | 39 const base::string16& pasted_text, |
41 size_t selected_line) override; | 40 size_t selected_line) override; |
42 base::string16 GetText() const override; | 41 base::string16 GetText() const override; |
43 void SetWindowTextAndCaretPos(const base::string16& text, | 42 void SetWindowTextAndCaretPos(const base::string16& text, |
44 size_t caret_pos, | 43 size_t caret_pos, |
45 bool update_popup, | 44 bool update_popup, |
46 bool notify_text_changed) override; | 45 bool notify_text_changed) override; |
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
197 bool in_coalesced_update_block_; | 196 bool in_coalesced_update_block_; |
198 bool do_coalesced_text_update_; | 197 bool do_coalesced_text_update_; |
199 base::string16 coalesced_text_update_; | 198 base::string16 coalesced_text_update_; |
200 bool do_coalesced_range_update_; | 199 bool do_coalesced_range_update_; |
201 NSRange coalesced_range_update_; | 200 NSRange coalesced_range_update_; |
202 | 201 |
203 DISALLOW_COPY_AND_ASSIGN(OmniboxViewMac); | 202 DISALLOW_COPY_AND_ASSIGN(OmniboxViewMac); |
204 }; | 203 }; |
205 | 204 |
206 #endif // CHROME_BROWSER_UI_COCOA_OMNIBOX_OMNIBOX_VIEW_MAC_H_ | 205 #endif // CHROME_BROWSER_UI_COCOA_OMNIBOX_OMNIBOX_VIEW_MAC_H_ |
OLD | NEW |