summaryrefslogtreecommitdiffstats
path: root/ash/metrics
diff options
context:
space:
mode:
authoroshima@chromium.org <oshima@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-02-27 14:32:45 +0000
committeroshima@chromium.org <oshima@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-02-27 14:32:45 +0000
commit81a629206f079580873ec11382eb671940993c6b (patch)
tree49817cbe7f4b5fdb95669ffac1e49560244c3659 /ash/metrics
parentfb20e077d18060ae1b53b24df67fcbb4ecc2d2aa (diff)
downloadchromium_src-81a629206f079580873ec11382eb671940993c6b.zip
chromium_src-81a629206f079580873ec11382eb671940993c6b.tar.gz
chromium_src-81a629206f079580873ec11382eb671940993c6b.tar.bz2
Rename WindowShowType to WindowStateType to be less confusing name.
Let the WindowState::State impl to store & manage WindowStateType. BUG=318325 Review URL: https://codereview.chromium.org/179393003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@253812 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ash/metrics')
-rw-r--r--ash/metrics/user_metrics_recorder.cc54
1 files changed, 27 insertions, 27 deletions
diff --git a/ash/metrics/user_metrics_recorder.cc b/ash/metrics/user_metrics_recorder.cc
index 4d49e92..ef0e980 100644
--- a/ash/metrics/user_metrics_recorder.cc
+++ b/ash/metrics/user_metrics_recorder.cc
@@ -399,44 +399,44 @@ void UserMetricsRecorder::RecordPeriodicMetrics() {
internal::SHELF_ALIGNMENT_UMA_ENUM_VALUE_COUNT);
}
- enum ActiveWindowShowType {
- ACTIVE_WINDOW_SHOW_TYPE_NO_ACTIVE_WINDOW,
- ACTIVE_WINDOW_SHOW_TYPE_OTHER,
- ACTIVE_WINDOW_SHOW_TYPE_MAXIMIZED,
- ACTIVE_WINDOW_SHOW_TYPE_FULLSCREEN,
- ACTIVE_WINDOW_SHOW_TYPE_SNAPPED,
- ACTIVE_WINDOW_SHOW_TYPE_COUNT
+ enum ActiveWindowStateType {
+ ACTIVE_WINDOW_STATE_TYPE_NO_ACTIVE_WINDOW,
+ ACTIVE_WINDOW_STATE_TYPE_OTHER,
+ ACTIVE_WINDOW_STATE_TYPE_MAXIMIZED,
+ ACTIVE_WINDOW_STATE_TYPE_FULLSCREEN,
+ ACTIVE_WINDOW_STATE_TYPE_SNAPPED,
+ ACTIVE_WINDOW_STATE_TYPE_COUNT
};
- ActiveWindowShowType active_window_show_type =
- ACTIVE_WINDOW_SHOW_TYPE_NO_ACTIVE_WINDOW;
+ ActiveWindowStateType active_window_state_type =
+ ACTIVE_WINDOW_STATE_TYPE_NO_ACTIVE_WINDOW;
wm::WindowState* active_window_state = ash::wm::GetActiveWindowState();
if (active_window_state) {
- switch(active_window_state->window_show_type()) {
- case wm::SHOW_TYPE_MAXIMIZED:
- active_window_show_type = ACTIVE_WINDOW_SHOW_TYPE_MAXIMIZED;
+ switch(active_window_state->GetStateType()) {
+ case wm::WINDOW_STATE_TYPE_MAXIMIZED:
+ active_window_state_type = ACTIVE_WINDOW_STATE_TYPE_MAXIMIZED;
break;
- case wm::SHOW_TYPE_FULLSCREEN:
- active_window_show_type = ACTIVE_WINDOW_SHOW_TYPE_FULLSCREEN;
+ case wm::WINDOW_STATE_TYPE_FULLSCREEN:
+ active_window_state_type = ACTIVE_WINDOW_STATE_TYPE_FULLSCREEN;
break;
- case wm::SHOW_TYPE_LEFT_SNAPPED:
- case wm::SHOW_TYPE_RIGHT_SNAPPED:
- active_window_show_type = ACTIVE_WINDOW_SHOW_TYPE_SNAPPED;
+ case wm::WINDOW_STATE_TYPE_LEFT_SNAPPED:
+ case wm::WINDOW_STATE_TYPE_RIGHT_SNAPPED:
+ active_window_state_type = ACTIVE_WINDOW_STATE_TYPE_SNAPPED;
break;
- case wm::SHOW_TYPE_DEFAULT:
- case wm::SHOW_TYPE_NORMAL:
- case wm::SHOW_TYPE_MINIMIZED:
- case wm::SHOW_TYPE_INACTIVE:
- case wm::SHOW_TYPE_DETACHED:
- case wm::SHOW_TYPE_END:
- case wm::SHOW_TYPE_AUTO_POSITIONED:
- active_window_show_type = ACTIVE_WINDOW_SHOW_TYPE_OTHER;
+ case wm::WINDOW_STATE_TYPE_DEFAULT:
+ case wm::WINDOW_STATE_TYPE_NORMAL:
+ case wm::WINDOW_STATE_TYPE_MINIMIZED:
+ case wm::WINDOW_STATE_TYPE_INACTIVE:
+ case wm::WINDOW_STATE_TYPE_DETACHED:
+ case wm::WINDOW_STATE_TYPE_END:
+ case wm::WINDOW_STATE_TYPE_AUTO_POSITIONED:
+ active_window_state_type = ACTIVE_WINDOW_STATE_TYPE_OTHER;
break;
}
}
UMA_HISTOGRAM_ENUMERATION("Ash.ActiveWindowShowTypeOverTime",
- active_window_show_type,
- ACTIVE_WINDOW_SHOW_TYPE_COUNT);
+ active_window_state_type,
+ ACTIVE_WINDOW_STATE_TYPE_COUNT);
}
} // namespace ash