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.h" |
9 #include "base/threading/thread_restrictions.h" | 9 #include "base/threading/thread_restrictions.h" |
10 #include "base/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 |
19 // value. | 19 // value. |
20 const float kWaitTimeout = 1500; | 20 const float kWaitTimeout = 1500; |
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
131 character_index_ = NSNotFound; | 131 character_index_ = NSNotFound; |
132 first_rect_ = NSZeroRect; | 132 first_rect_ = NSZeroRect; |
133 substring_.reset(); | 133 substring_.reset(); |
134 } | 134 } |
135 | 135 |
136 void TextInputClientMac::AfterRequest() { | 136 void TextInputClientMac::AfterRequest() { |
137 lock_.Release(); | 137 lock_.Release(); |
138 } | 138 } |
139 | 139 |
140 } // namespace content | 140 } // namespace content |
OLD | NEW |