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

Side by Side Diff: ui/aura/test/test_cursor_client.h

Issue 1162943002: Replace more ObserverList with base::ObserverList. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@observer
Patch Set: Created 5 years, 6 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 unified diff | Download patch
« no previous file with comments | « ui/aura/env.h ('k') | ui/aura/window.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 #ifndef UI_AURA_TEST_TEST_CURSOR_CLIENT_H_ 5 #ifndef UI_AURA_TEST_TEST_CURSOR_CLIENT_H_
6 #define UI_AURA_TEST_TEST_CURSOR_CLIENT_H_ 6 #define UI_AURA_TEST_TEST_CURSOR_CLIENT_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "base/observer_list.h" 10 #include "base/observer_list.h"
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 void AddObserver(aura::client::CursorClientObserver* observer) override; 49 void AddObserver(aura::client::CursorClientObserver* observer) override;
50 void RemoveObserver(aura::client::CursorClientObserver* observer) override; 50 void RemoveObserver(aura::client::CursorClientObserver* observer) override;
51 bool ShouldHideCursorOnKeyEvent(const ui::KeyEvent& event) const override; 51 bool ShouldHideCursorOnKeyEvent(const ui::KeyEvent& event) const override;
52 52
53 private: 53 private:
54 bool visible_; 54 bool visible_;
55 bool should_hide_cursor_on_key_event_; 55 bool should_hide_cursor_on_key_event_;
56 bool mouse_events_enabled_; 56 bool mouse_events_enabled_;
57 int cursor_lock_count_; 57 int cursor_lock_count_;
58 int calls_to_set_cursor_; 58 int calls_to_set_cursor_;
59 ObserverList<aura::client::CursorClientObserver> observers_; 59 base::ObserverList<aura::client::CursorClientObserver> observers_;
60 aura::Window* root_window_; 60 aura::Window* root_window_;
61 61
62 DISALLOW_COPY_AND_ASSIGN(TestCursorClient); 62 DISALLOW_COPY_AND_ASSIGN(TestCursorClient);
63 }; 63 };
64 64
65 } // namespace test 65 } // namespace test
66 } // namespace aura 66 } // namespace aura
67 67
68 #endif // UI_AURA_TEST_TEST_CURSOR_CLIENT_H_ 68 #endif // UI_AURA_TEST_TEST_CURSOR_CLIENT_H_
OLDNEW
« no previous file with comments | « ui/aura/env.h ('k') | ui/aura/window.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698