| 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 #include <stddef.h> | 9 #include <stddef.h> | 
| 10 | 10 | 
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 59   void OpenMatch(const AutocompleteMatch& match, | 59   void OpenMatch(const AutocompleteMatch& match, | 
| 60                  WindowOpenDisposition disposition, | 60                  WindowOpenDisposition disposition, | 
| 61                  const GURL& alternate_nav_url, | 61                  const GURL& alternate_nav_url, | 
| 62                  const base::string16& pasted_text, | 62                  const base::string16& pasted_text, | 
| 63                  size_t selected_line) override; | 63                  size_t selected_line) override; | 
| 64   base::string16 GetText() const override; | 64   base::string16 GetText() const override; | 
| 65   void SetWindowTextAndCaretPos(const base::string16& text, | 65   void SetWindowTextAndCaretPos(const base::string16& text, | 
| 66                                 size_t caret_pos, | 66                                 size_t caret_pos, | 
| 67                                 bool update_popup, | 67                                 bool update_popup, | 
| 68                                 bool notify_text_changed) override; | 68                                 bool notify_text_changed) override; | 
|  | 69   void SetCaretPos(size_t caret_pos) override; | 
| 69   void EnterKeywordModeForDefaultSearchProvider() override; | 70   void EnterKeywordModeForDefaultSearchProvider() override; | 
| 70   bool IsSelectAll() const override; | 71   bool IsSelectAll() const override; | 
| 71   bool DeleteAtEndPressed() override; | 72   bool DeleteAtEndPressed() override; | 
| 72   void GetSelectionBounds(base::string16::size_type* start, | 73   void GetSelectionBounds(base::string16::size_type* start, | 
| 73                           base::string16::size_type* end) const override; | 74                           base::string16::size_type* end) const override; | 
| 74   void SelectAll(bool reversed) override; | 75   void SelectAll(bool reversed) override; | 
| 75   void RevertAll() override; | 76   void RevertAll() override; | 
| 76   void UpdatePopup() override; | 77   void UpdatePopup() override; | 
| 77   void CloseOmniboxPopup() override; | 78   void CloseOmniboxPopup() override; | 
| 78   void SetFocus() override; | 79   void SetFocus() override; | 
| (...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 238   base::TimeTicks draw_rect_start_time_; | 239   base::TimeTicks draw_rect_start_time_; | 
| 239 | 240 | 
| 240   // Temporary pointer to the attributed display string, stored as color and | 241   // Temporary pointer to the attributed display string, stored as color and | 
| 241   // other emphasis attributes are applied by the superclass. | 242   // other emphasis attributes are applied by the superclass. | 
| 242   NSMutableAttributedString* attributing_display_string_;  // weak | 243   NSMutableAttributedString* attributing_display_string_;  // weak | 
| 243 | 244 | 
| 244   DISALLOW_COPY_AND_ASSIGN(OmniboxViewMac); | 245   DISALLOW_COPY_AND_ASSIGN(OmniboxViewMac); | 
| 245 }; | 246 }; | 
| 246 | 247 | 
| 247 #endif  // CHROME_BROWSER_UI_COCOA_OMNIBOX_OMNIBOX_VIEW_MAC_H_ | 248 #endif  // CHROME_BROWSER_UI_COCOA_OMNIBOX_OMNIBOX_VIEW_MAC_H_ | 
| OLD | NEW | 
|---|