| 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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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*)); |
| 44 MOCK_METHOD1(SetSelectionRange, bool(const gfx::Range&)); | 44 MOCK_METHOD1(SetSelectionRange, bool(const gfx::Range&)); |
| 45 MOCK_METHOD1(DeleteRange, bool(const gfx::Range&)); | 45 MOCK_METHOD1(DeleteRange, bool(const gfx::Range&)); |
| 46 MOCK_CONST_METHOD2(GetTextFromRange, bool(const gfx::Range&, string16*)); | 46 MOCK_CONST_METHOD2(GetTextFromRange, bool(const gfx::Range&, string16*)); |
| 47 MOCK_METHOD0(OnInputMethodChanged, void()); | 47 MOCK_METHOD0(OnInputMethodChanged, void()); |
| 48 MOCK_METHOD1(ChangeTextDirectionAndLayoutAlignment, | 48 MOCK_METHOD1(ChangeTextDirectionAndLayoutAlignment, |
| 49 bool(base::i18n::TextDirection)); | 49 bool(base::i18n::TextDirection)); |
| 50 MOCK_METHOD2(ExtendSelectionAndDelete, void(size_t, size_t)); | 50 MOCK_METHOD2(ExtendSelectionAndDelete, void(size_t, size_t)); |
| 51 MOCK_METHOD1(EnsureCaretInRect, void(const gfx::Rect&)); | 51 MOCK_METHOD1(EnsureCaretInRect, void(const gfx::Rect&)); |
| 52 MOCK_METHOD0(OnCandidateWindowShow, void()); |
| 53 MOCK_METHOD0(OnCandidateWindowUpdate, void()); |
| 54 MOCK_METHOD0(OnCandidateWindowHide, void()); |
| 52 }; | 55 }; |
| 53 | 56 |
| 54 class MockStoreACPSink : public ITextStoreACPSink { | 57 class MockStoreACPSink : public ITextStoreACPSink { |
| 55 public: | 58 public: |
| 56 MockStoreACPSink() : ref_count_(0) {} | 59 MockStoreACPSink() : ref_count_(0) {} |
| 57 | 60 |
| 58 // IUnknown | 61 // IUnknown |
| 59 virtual ULONG STDMETHODCALLTYPE AddRef() OVERRIDE { | 62 virtual ULONG STDMETHODCALLTYPE AddRef() OVERRIDE { |
| 60 return InterlockedIncrement(&ref_count_); | 63 return InterlockedIncrement(&ref_count_); |
| 61 } | 64 } |
| (...skipping 1228 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1290 text_store_->SetFocusedTextInputClient(NULL, NULL); | 1293 text_store_->SetFocusedTextInputClient(NULL, NULL); |
| 1291 num_copied = 0xfffffff; | 1294 num_copied = 0xfffffff; |
| 1292 TS_ATTRVAL buffer[2] = {}; | 1295 TS_ATTRVAL buffer[2] = {}; |
| 1293 EXPECT_HRESULT_FAILED(text_store_->RetrieveRequestedAttrs( | 1296 EXPECT_HRESULT_FAILED(text_store_->RetrieveRequestedAttrs( |
| 1294 arraysize(buffer), buffer, &num_copied)); | 1297 arraysize(buffer), buffer, &num_copied)); |
| 1295 } | 1298 } |
| 1296 } | 1299 } |
| 1297 | 1300 |
| 1298 } // namespace | 1301 } // namespace |
| 1299 } // namespace ui | 1302 } // namespace ui |
| OLD | NEW |