diff options
author | darin@chromium.org <darin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-01-27 21:14:57 +0000 |
---|---|---|
committer | darin@chromium.org <darin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-01-27 21:14:57 +0000 |
commit | 1d7b60c36369815b2d08ab7836d2193f85a9b946 (patch) | |
tree | 163181ef552c367bf52608f08d8bd18c57b88dc8 /webkit/tools/test_shell/test_shell.h | |
parent | 62d317f17a184ff6ececa01cd16a0902f723f375 (diff) | |
download | chromium_src-1d7b60c36369815b2d08ab7836d2193f85a9b946.zip chromium_src-1d7b60c36369815b2d08ab7836d2193f85a9b946.tar.gz chromium_src-1d7b60c36369815b2d08ab7836d2193f85a9b946.tar.bz2 |
Make the UI controls (back/forward/stop) in TestShell disable when appropriate.
R=dglazkov
Review URL: http://codereview.chromium.org/554102
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@37309 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/tools/test_shell/test_shell.h')
-rw-r--r-- | webkit/tools/test_shell/test_shell.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/webkit/tools/test_shell/test_shell.h b/webkit/tools/test_shell/test_shell.h index 3a8e4d7f..00a01c2 100644 --- a/webkit/tools/test_shell/test_shell.h +++ b/webkit/tools/test_shell/test_shell.h @@ -107,6 +107,11 @@ public: } WebWidgetHost* popupHost() { return m_popupHost; } + bool is_loading() const { return is_loading_; } + void set_is_loading(bool is_loading) { is_loading_ = is_loading; } + + void UpdateNavigationControls(); + // A new TestShell window will be opened with devtools url. // DevTools window can be opened manually via menu or automatically when // inspector's layout test url is passed from command line or console. @@ -312,6 +317,14 @@ protected: // Set the focus in interactive mode (pass through to relevant system call). void InteractiveSetFocus(WebWidgetHost* host, bool enable); + enum UIControl { + BACK_BUTTON, + FORWARD_BUTTON, + STOP_BUTTON + }; + + void EnableUIControl(UIControl control, bool is_enabled); + #if defined(OS_WIN) static LRESULT CALLBACK WndProc(HWND, UINT, WPARAM, LPARAM); static LRESULT CALLBACK EditWndProc(HWND, UINT, WPARAM, LPARAM); @@ -375,6 +388,9 @@ private: // True if driven from a nested message loop. bool is_modal_; + // True if the page is loading. + bool is_loading_; + // The preferences for the test shell. static WebPreferences* web_prefs_; |