diff options
author | csilv@chromium.org <csilv@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-06-03 17:15:22 +0000 |
---|---|---|
committer | csilv@chromium.org <csilv@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-06-03 17:15:22 +0000 |
commit | 9fa8af659705465662679b7663aa501b5cdb0861 (patch) | |
tree | 03556da50a4349f5a079c89baee166a6e326d841 /chrome/browser/sync/sync_setup_flow.h | |
parent | 684c407d7da343e29a98e115cc66eb7f3057a35a (diff) | |
download | chromium_src-9fa8af659705465662679b7663aa501b5cdb0861.zip chromium_src-9fa8af659705465662679b7663aa501b5cdb0861.tar.gz chromium_src-9fa8af659705465662679b7663aa501b5cdb0861.tar.bz2 |
Changes to allow focusing the syncronization dialog, useful for the case where the user
chooses to sync, but the window is already open and obscured by another window. For now
this only works on Mac due to how browser dialogs are handled on different platforms.
BUG=30649
TEST=Choose to 'Sync' when the sync window is already open behind a browser window.
Review URL: http://codereview.chromium.org/2121017
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@48840 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/sync/sync_setup_flow.h')
-rw-r--r-- | chrome/browser/sync/sync_setup_flow.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/chrome/browser/sync/sync_setup_flow.h b/chrome/browser/sync/sync_setup_flow.h index db9de27..9aa4379 100644 --- a/chrome/browser/sync/sync_setup_flow.h +++ b/chrome/browser/sync/sync_setup_flow.h @@ -50,6 +50,10 @@ class SyncSetupFlow : public HtmlDialogUIDelegate { // Triggers a state machine transition to advance_state. void Advance(SyncSetupWizard::State advance_state); + // Focuses the dialog. This is useful in cases where the dialog has been + // obscured by a browser window. + void Focus(); + // HtmlDialogUIDelegate implementation. // Get the HTML file path for the content to load in the dialog. virtual GURL GetDialogContentURL() const { |