| 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 #include "ui/base/ime/win/tsf_text_store.h" | 5 #include "ui/base/ime/win/tsf_text_store.h" |
| 6 | 6 |
| 7 #include <initguid.h> // for GUID_NULL and GUID_PROP_INPUTSCOPE | 7 #include <initguid.h> // for GUID_NULL and GUID_PROP_INPUTSCOPE |
| 8 #include <InputScope.h> | 8 #include <InputScope.h> |
| 9 #include <OleCtl.h> | 9 #include <OleCtl.h> |
| 10 | 10 |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 namespace ui { | 23 namespace ui { |
| 24 namespace { | 24 namespace { |
| 25 | 25 |
| 26 class MockTextInputClient : public TextInputClient { | 26 class MockTextInputClient : public TextInputClient { |
| 27 public: | 27 public: |
| 28 ~MockTextInputClient() {} | 28 ~MockTextInputClient() {} |
| 29 MOCK_METHOD1(SetCompositionText, void(const ui::CompositionText&)); | 29 MOCK_METHOD1(SetCompositionText, void(const ui::CompositionText&)); |
| 30 MOCK_METHOD0(ConfirmCompositionText, void()); | 30 MOCK_METHOD0(ConfirmCompositionText, void()); |
| 31 MOCK_METHOD0(ClearCompositionText, void()); | 31 MOCK_METHOD0(ClearCompositionText, void()); |
| 32 MOCK_METHOD1(InsertText, void(const base::string16&)); | 32 MOCK_METHOD1(InsertText, void(const base::string16&)); |
| 33 MOCK_METHOD2(InsertChar, void(char16, int)); | 33 MOCK_METHOD2(InsertChar, void(base::char16, int)); |
| 34 MOCK_CONST_METHOD0(GetAttachedWindow, gfx::NativeWindow()); | 34 MOCK_CONST_METHOD0(GetAttachedWindow, gfx::NativeWindow()); |
| 35 MOCK_CONST_METHOD0(GetTextInputType, ui::TextInputType()); | 35 MOCK_CONST_METHOD0(GetTextInputType, ui::TextInputType()); |
| 36 MOCK_CONST_METHOD0(GetTextInputMode, ui::TextInputMode()); | 36 MOCK_CONST_METHOD0(GetTextInputMode, ui::TextInputMode()); |
| 37 MOCK_CONST_METHOD0(CanComposeInline, bool()); | 37 MOCK_CONST_METHOD0(CanComposeInline, bool()); |
| 38 MOCK_CONST_METHOD0(GetCaretBounds, gfx::Rect()); | 38 MOCK_CONST_METHOD0(GetCaretBounds, gfx::Rect()); |
| 39 MOCK_CONST_METHOD2(GetCompositionCharacterBounds, bool(uint32, gfx::Rect*)); | 39 MOCK_CONST_METHOD2(GetCompositionCharacterBounds, bool(uint32, gfx::Rect*)); |
| 40 MOCK_CONST_METHOD0(HasCompositionText, bool()); | 40 MOCK_CONST_METHOD0(HasCompositionText, bool()); |
| 41 MOCK_CONST_METHOD1(GetTextRange, bool(gfx::Range*)); | 41 MOCK_CONST_METHOD1(GetTextRange, bool(gfx::Range*)); |
| 42 MOCK_CONST_METHOD1(GetCompositionTextRange, bool(gfx::Range*)); | 42 MOCK_CONST_METHOD1(GetCompositionTextRange, bool(gfx::Range*)); |
| 43 MOCK_CONST_METHOD1(GetSelectionRange, bool(gfx::Range*)); | 43 MOCK_CONST_METHOD1(GetSelectionRange, bool(gfx::Range*)); |
| (...skipping 1251 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1295 text_store_->SetFocusedTextInputClient(NULL, NULL); | 1295 text_store_->SetFocusedTextInputClient(NULL, NULL); |
| 1296 num_copied = 0xfffffff; | 1296 num_copied = 0xfffffff; |
| 1297 TS_ATTRVAL buffer[2] = {}; | 1297 TS_ATTRVAL buffer[2] = {}; |
| 1298 EXPECT_HRESULT_FAILED(text_store_->RetrieveRequestedAttrs( | 1298 EXPECT_HRESULT_FAILED(text_store_->RetrieveRequestedAttrs( |
| 1299 arraysize(buffer), buffer, &num_copied)); | 1299 arraysize(buffer), buffer, &num_copied)); |
| 1300 } | 1300 } |
| 1301 } | 1301 } |
| 1302 | 1302 |
| 1303 } // namespace | 1303 } // namespace |
| 1304 } // namespace ui | 1304 } // namespace ui |
| OLD | NEW |