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

Unified Diff: components/mus/ws/focus_controller_observer.h

Issue 1465143004: Converts focusmanager from delegate to observer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: cleanup Created 5 years, 1 month 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 | « components/mus/ws/focus_controller_delegate.h ('k') | components/mus/ws/focus_controller_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/mus/ws/focus_controller_observer.h
diff --git a/components/mus/ws/focus_controller_delegate.h b/components/mus/ws/focus_controller_observer.h
similarity index 68%
rename from components/mus/ws/focus_controller_delegate.h
rename to components/mus/ws/focus_controller_observer.h
index 11ef9ad7e499c00795fe63ac5703a405d3ad9248..015a51e7b99fa1da7bc2fee8408819d700d9f1ea 100644
--- a/components/mus/ws/focus_controller_delegate.h
+++ b/components/mus/ws/focus_controller_observer.h
@@ -6,22 +6,22 @@
#define COMPONENTS_MUS_WS_FOCUS_CONTROLLER_DELEGATE_H_
namespace mus {
-
namespace ws {
+enum class FocusControllerChangeSource;
class ServerWindow;
-class FocusControllerDelegate {
+class FocusControllerObserver {
public:
- virtual void OnFocusChanged(ServerWindow* old_focused_window,
+ virtual void OnFocusChanged(FocusControllerChangeSource change_source,
+ ServerWindow* old_focused_window,
ServerWindow* new_focused_window) = 0;
protected:
- ~FocusControllerDelegate() {}
+ ~FocusControllerObserver() {}
};
} // namespace ws
-
} // namespace mus
#endif // COMPONENTS_MUS_WS_FOCUS_CONTROLLER_DELEGATE_H_
« no previous file with comments | « components/mus/ws/focus_controller_delegate.h ('k') | components/mus/ws/focus_controller_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698