Searched refs:observers_ (Results 1 - 25 of 594) sorted by relevance

1234567891011>>

/external/chromium_org/chrome/browser/ui/panels/
H A Dpanel_mouse_watcher.cc17 bool already_started = observers_.might_have_observers();
18 observers_.AddObserver(observer);
24 DCHECK(observers_.HasObserver(observer));
25 observers_.RemoveObserver(observer);
26 if (!observers_.might_have_observers())
31 FOR_EACH_OBSERVER(PanelMouseWatcherObserver, observers_,
/external/chromium_org/content/public/test/
H A Dmock_download_item.cc12 FOR_EACH_OBSERVER(Observer, observers_, OnDownloadDestroyed(this));
16 observers_.AddObserver(observer);
20 observers_.RemoveObserver(observer);
24 FOR_EACH_OBSERVER(Observer, observers_, OnDownloadOpened(this));
28 FOR_EACH_OBSERVER(Observer, observers_, OnDownloadRemoved(this));
32 FOR_EACH_OBSERVER(Observer, observers_, OnDownloadUpdated(this));
/external/chromium_org/ash/first_run/
H A Dfirst_run_helper.cc13 observers_.AddObserver(observer);
17 observers_.RemoveObserver(observer);
/external/chromium_org/ash/system/user/
H A Duser_accounts_delegate.cc15 observers_.AddObserver(observer);
19 observers_.RemoveObserver(observer);
23 FOR_EACH_OBSERVER(Observer, observers_, AccountListChanged());
/external/chromium_org/chrome/browser/ui/views/frame/
H A Dimmersive_mode_controller.cc11 FOR_EACH_OBSERVER(Observer, observers_, OnImmersiveModeControllerDestroyed());
15 observers_.AddObserver(observer);
19 observers_.RemoveObserver(observer);
/external/chromium_org/components/invalidation/
H A Dticl_settings_provider.cc19 observers_.AddObserver(observer);
23 observers_.RemoveObserver(observer);
27 FOR_EACH_OBSERVER(Observer, observers_, OnUseGCMChannelChanged());
/external/chromium_org/chrome/browser/status_icons/
H A Dstatus_icon.cc16 observers_.AddObserver(observer);
20 observers_.RemoveObserver(observer);
24 return observers_.might_have_observers();
28 FOR_EACH_OBSERVER(StatusIconObserver, observers_, OnStatusIconClicked());
33 FOR_EACH_OBSERVER(StatusIconObserver, observers_, OnBalloonClicked());
/external/chromium_org/chrome/browser/resources/options/
H A Dsupervised_user_list_data.js16 this.observers_ = [];
107 for (var i = 0; i < this.observers_.length; ++i)
108 this.observers_[i].receiveExistingSupervisedUsers_(supervisedUsers);
117 for (var i = 0; i < this.observers_.length; ++i)
118 assert(this.observers_[i] != observer);
119 this.observers_.push(observer);
128 for (var i = 0; i < this.observers_.length; ++i) {
129 if (this.observers_[i] == observer) {
130 this.observers_.splice(i, 1);
/external/chromium_org/content/renderer/media/
H A Dmedia_stream.cc38 DCHECK(observers_.empty());
50 DCHECK(std::find(observers_.begin(), observers_.end(), observer) ==
51 observers_.end());
52 observers_.push_back(observer);
58 std::find(observers_.begin(), observers_.end(), observer);
59 DCHECK(it != observers_.end());
60 observers_.erase(it);
65 for (std::vector<MediaStreamObserver*>::iterator it = observers_
[all...]
/external/chromium_org/base/power_monitor/
H A Dpower_monitor.cc13 : observers_(new ObserverListThreadSafe<PowerObserver>()),
30 observers_->AddObserver(obs);
34 observers_->RemoveObserver(obs);
48 observers_->Notify(&PowerObserver::OnPowerStateChange, battery_in_use);
53 observers_->Notify(&PowerObserver::OnSuspend);
58 observers_->Notify(&PowerObserver::OnResume);
/external/chromium_org/third_party/libjingle/source/talk/app/webrtc/
H A Dnotifier.h47 observers_.push_back(observer);
51 for (std::list<ObserverInterface*>::iterator it = observers_.begin();
52 it != observers_.end(); it++) {
54 observers_.erase(it);
64 std::list<ObserverInterface*> observers = observers_;
72 std::list<ObserverInterface*> observers_; member in class:webrtc::Notifier
/external/chromium_org/chrome/browser/chromeos/input_method/
H A Dmock_candidate_window_controller.cc22 observers_.AddObserver(observer);
28 observers_.RemoveObserver(observer);
36 FOR_EACH_OBSERVER(CandidateWindowController::Observer, observers_,
41 FOR_EACH_OBSERVER(CandidateWindowController::Observer, observers_,
/external/chromium_org/chrome/browser/prefs/
H A Dsynced_pref_change_registrar.cc37 observers_[path] = callback;
42 observers_.erase(path);
47 for (ObserverMap::iterator iter = observers_.begin();
48 iter != observers_.end(); ++iter) {
51 observers_.clear();
55 return observers_.find(path) != observers_.end();
62 ObserverMap::const_iterator iter = observers_.find(path);
63 if (iter == observers_.end())
/external/chromium_org/chrome/browser/ui/webui/chromeos/
H A Dtouch_view_controller_delegate.cc21 observers_.AddObserver(observer);
25 observers_.RemoveObserver(observer);
34 FOR_EACH_OBSERVER(Observer, observers_, OnMaximizeModeStarted());
38 FOR_EACH_OBSERVER(Observer, observers_, OnMaximizeModeEnded());
/external/chromium_org/content/browser/
H A Dnotification_service_impl.cc58 if (HasKey(observers_[type], source)) {
59 observer_list = observers_[type][source.map_key()];
62 observers_[type][source.map_key()] = observer_list;
80 CHECK(HasKey(observers_[type], source));
83 observers_[type][source.map_key()];
87 observers_[type].erase(source.map_key());
106 if (HasKey(observers_[NOTIFICATION_ALL], AllSources()) &&
109 *observers_[NOTIFICATION_ALL][AllSources().map_key()],
114 if (HasKey(observers_[NOTIFICATION_ALL], source)) {
116 *observers_[NOTIFICATION_AL
[all...]
/external/chromium_org/cc/layers/
H A Ddelegated_frame_provider.cc32 for (size_t i = 0; i < observers_.size(); ++i)
33 DCHECK(observers_[i].layer != layer);
36 observers_.push_back(Observer(layer, gfx::RectF(frame_size_)));
43 for (size_t i = 0; i < observers_.size(); ++i) {
44 if (observers_[i].layer != layer)
46 observers_.erase(observers_.begin() + i);
74 for (size_t i = 0; i < observers_.size(); ++i) {
75 observers_[i].damage =
76 gfx::UnionRects(observers_[
[all...]
/external/chromium_org/base/prefs/
H A Dpref_change_registrar.cc40 observers_[path] = obs;
46 observers_.erase(path);
51 for (ObserverMap::const_iterator it = observers_.begin();
52 it != observers_.end(); ++it) {
56 observers_.clear();
60 return observers_.empty();
64 return observers_.find(pref) != observers_.end();
68 for (ObserverMap::const_iterator it = observers_.begin();
69 it != observers_
[all...]
H A Dvalue_map_pref_store.cc20 observers_.AddObserver(observer);
24 observers_.RemoveObserver(observer);
28 return observers_.might_have_observers();
33 FOR_EACH_OBSERVER(Observer, observers_, OnPrefValueChanged(key));
38 FOR_EACH_OBSERVER(Observer, observers_, OnPrefValueChanged(key));
47 FOR_EACH_OBSERVER(Observer, observers_, OnPrefValueChanged(key));
58 FOR_EACH_OBSERVER(Observer, observers_, OnInitializationCompleted(true));
/external/chromium_org/base/
H A Dobserver_list.h108 size_t size() const { return observers_.size(); }
117 ListType observers_; member in class:ObserverListBase
133 list.observers_.size()) {
147 ListType& observers = list_->observers_;
157 if (std::find(observers_.begin(), observers_.end(), obs)
158 != observers_.end()) {
162 observers_.push_back(obs);
168 std::find(observers_.begin(), observers_
[all...]
/external/chromium_org/chrome/browser/chromeos/
H A Dcamera_presence_notifier.cc34 bool had_no_observers = !observers_.might_have_observers();
35 observers_.AddObserver(observer);
49 observers_.RemoveObserver(observer);
50 if (!observers_.might_have_observers()) {
68 observers_,
/external/chromium_org/chrome/browser/resources/chromeos/login/
H A Dscreen_context.js33 this.observers_ = {};
108 if (!this.observers_.hasOwnProperty(key))
109 this.observers_[key] = [];
110 if (this.observers_[key].indexOf(observer) !== -1) {
114 this.observers_[key].push(observer);
118 for (var key in this.observers_) {
119 var observerIndex = this.observers_[key].indexOf(observer);
121 this.observers_[key].splice(observerIndex, 1);
131 for (var key in this.observers_)
132 result[key] = this.observers_[ke
[all...]
/external/chromium_org/storage/browser/quota/
H A Dspecial_storage_policy.cc16 observers_.AddObserver(observer);
20 observers_.RemoveObserver(observer);
25 FOR_EACH_OBSERVER(Observer, observers_, OnGranted(origin, change_flags));
30 FOR_EACH_OBSERVER(Observer, observers_, OnRevoked(origin, change_flags));
35 FOR_EACH_OBSERVER(Observer, observers_, OnCleared());
/external/chromium_org/ui/chromeos/network/
H A Dnetwork_icon_animation.cc30 FOR_EACH_OBSERVER(AnimationObserver, observers_, NetworkIconChanged());
43 if (!observers_.HasObserver(observer))
44 observers_.AddObserver(observer);
48 observers_.RemoveObserver(observer);
49 if (!observers_.might_have_observers())
/external/chromium_org/ui/app_list/
H A Dsearch_box_model.cc34 FOR_EACH_OBSERVER(SearchBoxModelObserver, observers_, IconChanged());
41 observers_,
50 FOR_EACH_OBSERVER(SearchBoxModelObserver, observers_, HintTextChanged());
59 observers_,
73 FOR_EACH_OBSERVER(SearchBoxModelObserver, observers_, TextChanged());
77 observers_.AddObserver(observer);
81 observers_.RemoveObserver(observer);
H A Dsearch_result.cc36 FOR_EACH_OBSERVER(SearchResultObserver, observers_, OnResultDestroying());
42 observers_,
49 observers_,
59 observers_,
69 observers_,
85 FOR_EACH_OBSERVER(SearchResultObserver, observers_, OnItemInstalled());
89 FOR_EACH_OBSERVER(SearchResultObserver, observers_, OnItemUninstalled());
93 observers_.AddObserver(observer);
97 observers_.RemoveObserver(observer);

Completed in 514 milliseconds

1234567891011>>