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

Unified Diff: ui/aura/test/test_cursor_client.cc

Issue 2422073002: Reduce FOR_EACH_OBSERVER usage in ui/ (Closed)
Patch Set: remove space Created 4 years, 2 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/aura/env.cc ('k') | ui/aura/test/test_focus_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura/test/test_cursor_client.cc
diff --git a/ui/aura/test/test_cursor_client.cc b/ui/aura/test/test_cursor_client.cc
index 123046cd450786524ddfd699c70dc803dbc3ca1e..54b0e07631e5840b055fe36abbe162a9dbafa715 100644
--- a/ui/aura/test/test_cursor_client.cc
+++ b/ui/aura/test/test_cursor_client.cc
@@ -33,14 +33,14 @@ gfx::NativeCursor TestCursorClient::GetCursor() const {
void TestCursorClient::ShowCursor() {
visible_ = true;
- FOR_EACH_OBSERVER(aura::client::CursorClientObserver, observers_,
- OnCursorVisibilityChanged(true));
+ for (aura::client::CursorClientObserver& observer : observers_)
+ observer.OnCursorVisibilityChanged(true);
}
void TestCursorClient::HideCursor() {
visible_ = false;
- FOR_EACH_OBSERVER(aura::client::CursorClientObserver, observers_,
- OnCursorVisibilityChanged(false));
+ for (aura::client::CursorClientObserver& observer : observers_)
+ observer.OnCursorVisibilityChanged(false);
}
void TestCursorClient::SetCursorSet(ui::CursorSetType cursor_set) {
« no previous file with comments | « ui/aura/env.cc ('k') | ui/aura/test/test_focus_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698