Use app list item shadow for app list folders.
[chromium-blink-merge.git] / chrome / browser / repost_form_warning_controller.h
blob23779c6791d84280868cc6ff0f085c8962cbe1f0
1 // Copyright (c) 2012 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.
5 #ifndef CHROME_BROWSER_REPOST_FORM_WARNING_CONTROLLER_H_
6 #define CHROME_BROWSER_REPOST_FORM_WARNING_CONTROLLER_H_
8 #include "base/compiler_specific.h"
9 #include "chrome/browser/ui/tab_modal_confirm_dialog_delegate.h"
10 #include "content/public/browser/web_contents_observer.h"
12 // This class is used to continue or cancel a pending reload when the
13 // repost form warning is shown. It is owned by the platform-specific
14 // |TabModalConfirmDialog{Gtk, Mac, Views, WebUI}| classes.
15 class RepostFormWarningController : public TabModalConfirmDialogDelegate,
16 public content::WebContentsObserver {
17 public:
18 explicit RepostFormWarningController(content::WebContents* web_contents);
19 ~RepostFormWarningController() override;
21 private:
22 // TabModalConfirmDialogDelegate methods:
23 base::string16 GetTitle() override;
24 base::string16 GetDialogMessage() override;
25 base::string16 GetAcceptButtonTitle() override;
26 void OnAccepted() override;
27 void OnCanceled() override;
28 void OnClosed() override;
30 // content::WebContentsObserver methods:
31 void BeforeFormRepostWarningShow() override;
33 DISALLOW_COPY_AND_ASSIGN(RepostFormWarningController);
36 #endif // CHROME_BROWSER_REPOST_FORM_WARNING_CONTROLLER_H_