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

Side by Side Diff: content/browser/renderer_host/text_input_client_mac.h

Issue 1442853003: Removes the useless definition of GetAttributedSubstringFromRange. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 CONTENT_BROWSER_RENDERER_HOST_TEXT_INPUT_CLIENT_MAC_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_TEXT_INPUT_CLIENT_MAC_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_TEXT_INPUT_CLIENT_MAC_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_TEXT_INPUT_CLIENT_MAC_H_
7 7
8 #import <Cocoa/Cocoa.h> 8 #import <Cocoa/Cocoa.h>
9 9
10 #include "base/mac/scoped_block.h" 10 #include "base/mac/scoped_block.h"
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 // Each of the three methods mentioned above has an associated pair of methods 50 // Each of the three methods mentioned above has an associated pair of methods
51 // to get data from the renderer. The Get*() methods block the calling thread 51 // to get data from the renderer. The Get*() methods block the calling thread
52 // (always the UI thread) with a short timeout after the async message has 52 // (always the UI thread) with a short timeout after the async message has
53 // been sent to the renderer to lookup the information needed to respond to 53 // been sent to the renderer to lookup the information needed to respond to
54 // the system. The Set*AndSignal() methods store the looked up information in 54 // the system. The Set*AndSignal() methods store the looked up information in
55 // this service and signal the condition to allow the Get*() methods to 55 // this service and signal the condition to allow the Get*() methods to
56 // unlock and return that stored value. 56 // unlock and return that stored value.
57 // 57 //
58 // Returns NSNotFound if the request times out or is not completed. 58 // Returns NSNotFound if the request times out or is not completed.
59 NSUInteger GetCharacterIndexAtPoint(RenderWidgetHost* rwh, gfx::Point point); 59 NSUInteger GetCharacterIndexAtPoint(RenderWidgetHost* rwh, gfx::Point point);
60 // Returns nil if the request times out or is completed.
61 NSAttributedString* GetAttributedSubstringFromRange(
62 RenderWidgetHost* rwh, NSRange range);
63 // Returns NSZeroRect if the request times out or is not completed. The result 60 // Returns NSZeroRect if the request times out or is not completed. The result
64 // is in WebKit coordinates. 61 // is in WebKit coordinates.
65 NSRect GetFirstRectForRange(RenderWidgetHost* rwh, NSRange range); 62 NSRect GetFirstRectForRange(RenderWidgetHost* rwh, NSRange range);
66 63
67 // When the renderer sends the ViewHostMsg reply, the RenderMessageFilter will 64 // When the renderer sends the ViewHostMsg reply, the RenderMessageFilter will
68 // call the corresponding method on the IO thread to unlock the condition and 65 // call the corresponding method on the IO thread to unlock the condition and
69 // allow the Get*() methods to continue/return. 66 // allow the Get*() methods to continue/return.
70 void SetCharacterIndexAndSignal(NSUInteger index); 67 void SetCharacterIndexAndSignal(NSUInteger index);
71 void SetFirstRectAndSignal(NSRect first_rect); 68 void SetFirstRectAndSignal(NSRect first_rect);
72 69
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 // The callback when received IPC TextInputClientReplyMsg_GotStringForRange. 122 // The callback when received IPC TextInputClientReplyMsg_GotStringForRange.
126 base::mac::ScopedBlock<void(^)(NSAttributedString*, NSPoint)> 123 base::mac::ScopedBlock<void(^)(NSAttributedString*, NSPoint)>
127 replyForRangeHandler_; 124 replyForRangeHandler_;
128 125
129 DISALLOW_COPY_AND_ASSIGN(TextInputClientMac); 126 DISALLOW_COPY_AND_ASSIGN(TextInputClientMac);
130 }; 127 };
131 128
132 } // namespace content 129 } // namespace content
133 130
134 #endif // CONTENT_BROWSER_RENDERER_HOST_TEXT_INPUT_CLIENT_MAC_H_ 131 #endif // CONTENT_BROWSER_RENDERER_HOST_TEXT_INPUT_CLIENT_MAC_H_
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698