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 #import "content/browser/renderer_host/text_input_client_mac.h" | 5 #import "content/browser/renderer_host/text_input_client_mac.h" |
6 | 6 |
7 #include "base/memory/singleton.h" | 7 #include "base/memory/singleton.h" |
8 #include "base/metrics/histogram.h" | 8 #include "base/metrics/histogram_macros.h" |
9 #include "base/threading/thread_restrictions.h" | 9 #include "base/threading/thread_restrictions.h" |
10 #include "base/time/time.h" | 10 #include "base/time/time.h" |
11 #include "content/browser/renderer_host/render_widget_host_impl.h" | 11 #include "content/browser/renderer_host/render_widget_host_impl.h" |
12 #include "content/common/text_input_client_messages.h" | 12 #include "content/common/text_input_client_messages.h" |
13 | 13 |
14 namespace content { | 14 namespace content { |
15 | 15 |
16 // The amount of time in milliseconds that the browser process will wait for a | 16 // The amount of time in milliseconds that the browser process will wait for a |
17 // response from the renderer. | 17 // response from the renderer. |
18 // TODO(rsesek): Using the histogram data, find the best upper-bound for this | 18 // TODO(rsesek): Using the histogram data, find the best upper-bound for this |
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
136 | 136 |
137 character_index_ = NSNotFound; | 137 character_index_ = NSNotFound; |
138 first_rect_ = NSZeroRect; | 138 first_rect_ = NSZeroRect; |
139 } | 139 } |
140 | 140 |
141 void TextInputClientMac::AfterRequest() { | 141 void TextInputClientMac::AfterRequest() { |
142 lock_.Release(); | 142 lock_.Release(); |
143 } | 143 } |
144 | 144 |
145 } // namespace content | 145 } // namespace content |
OLD | NEW |