Upstream version 7.35.144.0
[platform/framework/web/crosswalk.git] / src / chrome / browser / ui / views / app_list / linux / app_list_controller_delegate_linux.cc
1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "chrome/browser/ui/views/app_list/linux/app_list_controller_delegate_linux.h"
6
7 #include "chrome/browser/ui/views/app_list/linux/app_list_service_linux.h"
8
9 AppListControllerDelegateLinux::AppListControllerDelegateLinux(
10     AppListServiceLinux* service)
11     : AppListControllerDelegateImpl(service),
12       service_(service) {
13 }
14
15 AppListControllerDelegateLinux::~AppListControllerDelegateLinux() {}
16
17 void AppListControllerDelegateLinux::ViewClosing() {
18   service_->OnAppListClosing();
19 }
20
21 void AppListControllerDelegateLinux::OnShowExtensionPrompt() {
22   service_->set_can_close(false);
23 }
24
25 void AppListControllerDelegateLinux::OnCloseExtensionPrompt() {
26   service_->set_can_close(true);
27 }
28
29 bool AppListControllerDelegateLinux::CanDoCreateShortcutsFlow() {
30   return true;
31 }