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

Side by Side Diff: chrome/browser/ui/views/ime_driver/remote_text_input_client.cc

Issue 2593323002: Use the physical-pixel space for native IME on linux platform. (Closed)
Patch Set: Created 3 years, 12 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
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 // Reduce number of log messages by logging each NOTIMPLEMENTED() only once. 5 // Reduce number of log messages by logging each NOTIMPLEMENTED() only once.
6 // This has to be before any other includes, else default is picked up. 6 // This has to be before any other includes, else default is picked up.
7 // See base/logging.h for details on this. 7 // See base/logging.h for details on this.
8 #define NOTIMPLEMENTED_POLICY 5 8 #define NOTIMPLEMENTED_POLICY 5
9 9
10 #include "chrome/browser/ui/views/ime_driver/remote_text_input_client.h" 10 #include "chrome/browser/ui/views/ime_driver/remote_text_input_client.h"
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 return 0; 62 return 0;
63 } 63 }
64 64
65 bool RemoteTextInputClient::CanComposeInline() const { 65 bool RemoteTextInputClient::CanComposeInline() const {
66 // If we return false here, ui::InputMethodChromeOS will try to create a 66 // If we return false here, ui::InputMethodChromeOS will try to create a
67 // composition window. But here we are at IMEDriver, and composition 67 // composition window. But here we are at IMEDriver, and composition
68 // window shouldn't be created by IMEDriver. 68 // window shouldn't be created by IMEDriver.
69 return true; 69 return true;
70 } 70 }
71 71
72 float RemoteTextInputClient::GetScaleFactor() const {
73 return 1.0f;
74 }
75
72 gfx::Rect RemoteTextInputClient::GetCaretBounds() const { 76 gfx::Rect RemoteTextInputClient::GetCaretBounds() const {
73 // TODO(moshayedi): crbug.com/631527. 77 // TODO(moshayedi): crbug.com/631527.
74 NOTIMPLEMENTED(); 78 NOTIMPLEMENTED();
75 return gfx::Rect(); 79 return gfx::Rect();
76 } 80 }
77 81
78 bool RemoteTextInputClient::GetCompositionCharacterBounds( 82 bool RemoteTextInputClient::GetCompositionCharacterBounds(
79 uint32_t index, 83 uint32_t index,
80 gfx::Rect* rect) const { 84 gfx::Rect* rect) const {
81 // TODO(moshayedi): crbug.com/631527. 85 // TODO(moshayedi): crbug.com/631527.
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
154 // TODO(moshayedi): crbug.com/631527. 158 // TODO(moshayedi): crbug.com/631527.
155 NOTIMPLEMENTED(); 159 NOTIMPLEMENTED();
156 return false; 160 return false;
157 } 161 }
158 162
159 void RemoteTextInputClient::SetTextEditCommandForNextKeyEvent( 163 void RemoteTextInputClient::SetTextEditCommandForNextKeyEvent(
160 ui::TextEditCommand command) { 164 ui::TextEditCommand command) {
161 // TODO(moshayedi): crbug.com/631527. 165 // TODO(moshayedi): crbug.com/631527.
162 NOTIMPLEMENTED(); 166 NOTIMPLEMENTED();
163 } 167 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698