Home
last modified time | relevance | path

Searched refs:event_delegate_ (Results 1 – 7 of 7) sorted by relevance

/external/chromium_org/chrome/browser/extensions/api/idle/
Didle_api_unittest.cc141 testing::StrictMock<MockEventDelegate>* event_delegate_; member in extensions::IdleTest
158 event_delegate_ = new testing::StrictMock<MockEventDelegate>(); in SetUp()
160 scoped_ptr<IdleManager::EventDelegate>(event_delegate_).Pass()); in SetUp()
307 EXPECT_CALL(*event_delegate_, OnStateChanged("test", IDLE_STATE_IDLE)); in TEST_F()
309 testing::Mock::VerifyAndClearExpectations(event_delegate_); in TEST_F()
325 EXPECT_CALL(*event_delegate_, OnStateChanged("test", IDLE_STATE_LOCKED)); in TEST_F()
336 EXPECT_CALL(*event_delegate_, OnStateChanged("test", IDLE_STATE_IDLE)); in TEST_F()
338 testing::Mock::VerifyAndClearExpectations(event_delegate_); in TEST_F()
341 EXPECT_CALL(*event_delegate_, OnStateChanged("test", IDLE_STATE_ACTIVE)); in TEST_F()
352 EXPECT_CALL(*event_delegate_, OnStateChanged("test", IDLE_STATE_IDLE)); in TEST_F()
[all …]
Didle_manager.cc130 event_delegate_(new DefaultEventDelegate(profile)) { in IdleManager()
139 event_delegate_->RegisterObserver(this); in Init()
144 event_delegate_->UnregisterObserver(this); in Shutdown()
209 event_delegate_ = event_delegate.Pass(); in SetEventDelegateForTest()
275 event_delegate_->OnStateChanged(it->first, new_state); in UpdateIdleStateCallback()
Didle_manager.h130 scoped_ptr<EventDelegate> event_delegate_; variable
/external/chromium_org/chrome/browser/extensions/api/braille_display_private/
Dbraille_display_private_api.cc44 event_delegate_(new DefaultEventDelegate(this, profile_)) { in BrailleDisplayPrivateAPI()
67 event_delegate_->BroadcastEvent(event.Pass()); in OnDisplayStateChanged()
77 event_delegate_->BroadcastEvent(event.Pass()); in OnKeyEvent()
101 event_delegate_ = delegate.Pass(); in SetEventDelegateForTest()
114 if (!event_delegate_->HasListener() && in OnListenerRemoved()
Dbraille_display_private_api.h70 scoped_ptr<EventDelegate> event_delegate_; variable
/external/chromium_org/chrome/browser/speech/
Dtts_controller.h180 return event_delegate_.get(); in event_delegate()
184 event_delegate_ = event_delegate; in set_event_delegate()
227 base::WeakPtr<UtteranceEventDelegate> event_delegate_; variable
Dtts_controller.cc96 if (event_delegate_) in OnTtsEvent()
97 event_delegate_->OnTtsEvent(this, event_type, char_index, error_message); in OnTtsEvent()
99 event_delegate_.reset(); in OnTtsEvent()