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

Unified Diff: chrome/browser/chromeos/wm_ipc.cc

Issue 2078017: chromeos: Add _CHROME_LOGGED_IN property on root window. (Closed)
Patch Set: move logged-in property setting to UserManager::UserLoggedIn() Created 10 years, 7 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 | « chrome/browser/chromeos/wm_ipc.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/wm_ipc.cc
diff --git a/chrome/browser/chromeos/wm_ipc.cc b/chrome/browser/chromeos/wm_ipc.cc
index ead38c9541e2067463d428d8c3e8dc3bb412046b..da7cd1559791e1c4bb431bf39d2ff6da712ee614 100644
--- a/chrome/browser/chromeos/wm_ipc.cc
+++ b/chrome/browser/chromeos/wm_ipc.cc
@@ -27,18 +27,13 @@ struct AtomInfo {
// Each value from the Atom enum must be present here.
static const AtomInfo kAtomInfos[] = {
+ { WmIpc::ATOM_CHROME_LOGGED_IN, "_CHROME_LOGGED_IN" },
{ WmIpc::ATOM_CHROME_WINDOW_TYPE, "_CHROME_WINDOW_TYPE" },
{ WmIpc::ATOM_CHROME_WM_MESSAGE, "_CHROME_WM_MESSAGE" },
{ WmIpc::ATOM_MANAGER, "MANAGER" },
- { WmIpc::ATOM_NET_SUPPORTING_WM_CHECK, "_NET_SUPPORTING_WM_CHECK" },
- { WmIpc::ATOM_NET_WM_NAME, "_NET_WM_NAME" },
- { WmIpc::ATOM_PRIMARY, "PRIMARY" },
{ WmIpc::ATOM_STRING, "STRING" },
{ WmIpc::ATOM_UTF8_STRING, "UTF8_STRING" },
- { WmIpc::ATOM_WM_NORMAL_HINTS, "WM_NORMAL_HINTS" },
{ WmIpc::ATOM_WM_S0, "WM_S0" },
- { WmIpc::ATOM_WM_STATE, "WM_STATE" },
- { WmIpc::ATOM_WM_TRANSIENT_FOR, "WM_TRANSIENT_FOR" },
{ WmIpc::ATOM_WM_SYSTEM_METRICS, "WM_SYSTEM_METRICS" },
};
@@ -215,6 +210,14 @@ void WmIpc::HandleNonChromeClientMessageEvent(const GdkEventClient& event) {
}
}
+void WmIpc::SetLoggedInProperty(bool logged_in) {
+ std::vector<int> values;
+ values.push_back(static_cast<int>(logged_in));
+ SetIntProperty(gdk_x11_get_default_root_xwindow(),
+ type_to_atom_[ATOM_CHROME_LOGGED_IN],
+ values);
+}
+
WmIpc::WmIpc() {
scoped_array<char*> names(new char*[kNumAtoms]);
scoped_array<Atom> atoms(new Atom[kNumAtoms]);
« no previous file with comments | « chrome/browser/chromeos/wm_ipc.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698