diff options
author | tfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-04-09 16:35:35 +0000 |
---|---|---|
committer | tfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-04-09 16:35:35 +0000 |
commit | 9061a69297986eb79f3bc667cb5f6b0ee3dcaf76 (patch) | |
tree | 8e19a86b0179eef33da27c36fb5e394d37ee6491 /ash/shell | |
parent | 4a9d9d141df52bf69f54fb1540bcb06e4b3ad25c (diff) | |
download | chromium_src-9061a69297986eb79f3bc667cb5f6b0ee3dcaf76.zip chromium_src-9061a69297986eb79f3bc667cb5f6b0ee3dcaf76.tar.gz chromium_src-9061a69297986eb79f3bc667cb5f6b0ee3dcaf76.tar.bz2 |
views/examples: Add enum parameter to ShowExamplesWindow() function.
This improves the readability of the code in the call sites of this function.
R=sky@chromium.org
Review URL: https://chromiumcodereview.appspot.com/10021020
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@131368 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ash/shell')
-rw-r--r-- | ash/shell/app_list.cc | 5 | ||||
-rw-r--r-- | ash/shell/window_type_launcher.cc | 2 |
2 files changed, 4 insertions, 3 deletions
diff --git a/ash/shell/app_list.cc b/ash/shell/app_list.cc index 5d99cb5..10e3783 100644 --- a/ash/shell/app_list.cc +++ b/ash/shell/app_list.cc @@ -5,8 +5,8 @@ #include "ash/app_list/app_list_item_model.h" #include "ash/app_list/app_list_item_view.h" #include "ash/app_list/app_list_model.h" -#include "ash/app_list/app_list_view_delegate.h" #include "ash/app_list/app_list_view.h" +#include "ash/app_list/app_list_view_delegate.h" #include "ash/shell.h" #include "ash/shell_delegate.h" #include "ash/shell/example_factory.h" @@ -91,7 +91,8 @@ class WindowTypeLauncherItem : public ash::AppListItemModel { } case EXAMPLES_WINDOW: { #if !defined(OS_MACOSX) - views::examples::ShowExamplesWindow(false); + views::examples::ShowExamplesWindow( + views::examples::DO_NOTHING_ON_CLOSE); #endif break; } diff --git a/ash/shell/window_type_launcher.cc b/ash/shell/window_type_launcher.cc index 61d0d9c..9935c98 100644 --- a/ash/shell/window_type_launcher.cc +++ b/ash/shell/window_type_launcher.cc @@ -341,7 +341,7 @@ void WindowTypeLauncher::ButtonPressed(views::Button* sender, } #if !defined(OS_MACOSX) else if (sender == examples_button_) { - views::examples::ShowExamplesWindow(false); + views::examples::ShowExamplesWindow(views::examples::DO_NOTHING_ON_CLOSE); } #endif // !defined(OS_MACOSX) } |