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

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

Issue 9600036: Move Render(View|Widget)Host and associated classes to content namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Respond to review comments. Created 8 years, 9 months 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 | Annotate | Revision Log
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 #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/time.h" 9 #include "base/time.h"
10 #include "content/browser/renderer_host/render_widget_host_impl.h" 10 #include "content/browser/renderer_host/render_widget_host_impl.h"
11 #include "content/common/text_input_client_messages.h" 11 #include "content/common/text_input_client_messages.h"
12 12
13 using content::RenderWidgetHost;
14 using content::RenderWidgetHostImpl;
15
13 // 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
14 // response from the renderer. 17 // response from the renderer.
15 // 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
16 // value. 19 // value.
17 const float kWaitTimeout = 1500; 20 const float kWaitTimeout = 1500;
18 21
19 TextInputClientMac::TextInputClientMac() 22 TextInputClientMac::TextInputClientMac()
20 : character_index_(NSNotFound), 23 : character_index_(NSNotFound),
21 lock_(), 24 lock_(),
22 condition_(&lock_) { 25 condition_(&lock_) {
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 delta * base::Time::kMicrosecondsPerMillisecond); 123 delta * base::Time::kMicrosecondsPerMillisecond);
121 124
122 character_index_ = NSNotFound; 125 character_index_ = NSNotFound;
123 first_rect_ = NSZeroRect; 126 first_rect_ = NSZeroRect;
124 substring_.reset(); 127 substring_.reset();
125 } 128 }
126 129
127 void TextInputClientMac::AfterRequest() { 130 void TextInputClientMac::AfterRequest() {
128 lock_.Release(); 131 lock_.Release();
129 } 132 }
OLDNEW
« no previous file with comments | « content/browser/renderer_host/text_input_client_mac.h ('k') | content/browser/renderer_host/text_input_client_mac_unittest.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698