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

Unified Diff: ui/aura/client/focus_client.cc

Issue 2488723002: Reland of Improves focus/activation for aura-mus and DesktopNativeWidgetAura (Closed)
Patch Set: Created 4 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 | « ui/aura/client/focus_client.h ('k') | ui/aura/env.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura/client/focus_client.cc
diff --git a/ui/aura/client/focus_client.cc b/ui/aura/client/focus_client.cc
index 0f69c5e496721b94fc3737aa1c0b75c125cf19f2..a5f179df589ac441a52da6208de0364f36aa1081 100644
--- a/ui/aura/client/focus_client.cc
+++ b/ui/aura/client/focus_client.cc
@@ -7,16 +7,16 @@
#include "ui/aura/window_event_dispatcher.h"
#include "ui/aura/window_property.h"
-DECLARE_WINDOW_PROPERTY_TYPE(aura::client::FocusClient*)
+DECLARE_EXPORTED_WINDOW_PROPERTY_TYPE(AURA_EXPORT, aura::client::FocusClient*)
namespace aura {
namespace client {
-DEFINE_WINDOW_PROPERTY_KEY(FocusClient*, kRootWindowFocusClientKey, NULL);
+DEFINE_WINDOW_PROPERTY_KEY(FocusClient*, kFocusClientKey, nullptr);
void SetFocusClient(Window* root_window, FocusClient* client) {
DCHECK_EQ(root_window->GetRootWindow(), root_window);
- root_window->SetProperty(kRootWindowFocusClientKey, client);
+ root_window->SetProperty(kFocusClientKey, client);
}
FocusClient* GetFocusClient(Window* window) {
@@ -25,8 +25,7 @@
FocusClient* GetFocusClient(const Window* window) {
const Window* root_window = window->GetRootWindow();
- return root_window ?
- root_window->GetProperty(kRootWindowFocusClientKey) : NULL;
+ return root_window ? root_window->GetProperty(kFocusClientKey) : nullptr;
}
} // namespace client
« no previous file with comments | « ui/aura/client/focus_client.h ('k') | ui/aura/env.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698