diff options
author | sky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-03-12 00:53:12 +0000 |
---|---|---|
committer | sky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-03-12 00:53:12 +0000 |
commit | 3cde5397a80913b843cfe792adc6a84ad2f9ed87 (patch) | |
tree | d138461509866f27cd10d146a471a66b2099f64e /chrome | |
parent | 5ff3666e5e1a62d8ef7fd87324a845ca7b6bb9db (diff) | |
download | chromium_src-3cde5397a80913b843cfe792adc6a84ad2f9ed87.zip chromium_src-3cde5397a80913b843cfe792adc6a84ad2f9ed87.tar.gz chromium_src-3cde5397a80913b843cfe792adc6a84ad2f9ed87.tar.bz2 |
Updates wm_ipc to be in sync with chrome os.
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/877002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@41375 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome')
-rw-r--r-- | chrome/browser/chromeos/wm_ipc.h | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/chrome/browser/chromeos/wm_ipc.h b/chrome/browser/chromeos/wm_ipc.h index 0cf997f..5a8b826 100644 --- a/chrome/browser/chromeos/wm_ipc.h +++ b/chrome/browser/chromeos/wm_ipc.h @@ -74,6 +74,40 @@ class WmIpc { // centering them over their owner and omit drawing a drop shadow. WINDOW_TYPE_CHROME_INFO_BUBBLE, + // A window showing a view of a tab within a Chrome window. + // param[0]: X ID of toplevel window that owns it. + // param[1]: index of this tab in the tab order (range is 0 to + // sum of all tabs in all browsers). + WINDOW_TYPE_CHROME_TAB_SNAPSHOT, + + // The following types are used for the windows that represent a user that + // has already logged into the system. + // + // Visually the BORDER contains the IMAGE and CONTROLS windows, the LABEL + // and UNSELECTED_LABEL are placed beneath the BORDER. The LABEL window is + // onscreen when the user is selected, otherwise the UNSELECTED_LABEL is + // on screen. The GUEST window is used when the user clicks on the entry + // that represents the 'guest' user. + // + // The following parameters are set for these windows (except GUEST and + // BACKGROUND): + // param[0]: the visual index of the user the window corresponds to. + // For example, all windows with an index of 0 occur first, + // followed by windows with an index of 1... + // + // The following additional params are set on the first BORDER window + // (BORDER window whose param[0] == 0). + // param[1]: the total number of users. + // param[2]: size of the unselected image. + // param[3]: gap between image and controls. + WINDOW_TYPE_LOGIN_BORDER, + WINDOW_TYPE_LOGIN_IMAGE, + WINDOW_TYPE_LOGIN_CONTROLS, + WINDOW_TYPE_LOGIN_LABEL, + WINDOW_TYPE_LOGIN_UNSELECTED_LABEL, + WINDOW_TYPE_LOGIN_GUEST, + WINDOW_TYPE_LOGIN_BACKGROUND, + kNumWindowTypes, }; @@ -184,6 +218,27 @@ class WmIpc { // param[0]: version of this protocol currently supported WM_NOTIFY_IPC_VERSION, + // Notify Chrome when a tab snapshot has been 'magnified' in the + // overview. Sent to the top level window. + // param[0]: X ID of the tab snapshot window + // param[1]: state (0 means end magnify, 1 means begin magnify) + CHROME_NOTIFY_TAB_SNAPSHOT_MAGNIFY, + + // Forces the window manager to hide the login windows. + WM_HIDE_LOGIN, + + // Sets whether login is enabled. If true the user can click on any of the + // login windows to select one, if false clicks on unselected windows are + // ignored. This is used when the user attempts a login to make sure the + // user doesn't select another user. + // + // param[0]: true to enable, false to disable. + WM_SET_LOGIN_STATE, + + // Notify chrome when the guest entry is selected and the guest window + // hasn't been created yet. + CHROME_CREATE_GUEST_WINDOW, + kNumTypes, }; |