1 // Copyright (c) 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.
5 #ifndef CHROME_BROWSER_UI_TEST_TEST_CONFIRM_BUBBLE_MODEL_H_
6 #define CHROME_BROWSER_UI_TEST_TEST_CONFIRM_BUBBLE_MODEL_H_
8 #include "base/compiler_specific.h"
9 #include "chrome/browser/ui/confirm_bubble_model.h"
11 // A test version of the model for confirmation bubbles.
12 class TestConfirmBubbleModel
: public ConfirmBubbleModel
{
14 // Parameters may be NULL depending on the needs of the test.
15 TestConfirmBubbleModel(bool* model_deleted
,
19 virtual ~TestConfirmBubbleModel();
21 // ConfirmBubbleModel overrides:
22 virtual string16
GetTitle() const OVERRIDE
;
23 virtual string16
GetMessageText() const OVERRIDE
;
24 virtual gfx::Image
* GetIcon() const OVERRIDE
;
25 virtual int GetButtons() const OVERRIDE
;
26 virtual string16
GetButtonLabel(BubbleButton button
) const OVERRIDE
;
27 virtual void Accept() OVERRIDE
;
28 virtual void Cancel() OVERRIDE
;
29 virtual string16
GetLinkText() const OVERRIDE
;
30 virtual void LinkClicked() OVERRIDE
;
34 bool* accept_clicked_
;
35 bool* cancel_clicked_
;
38 DISALLOW_COPY_AND_ASSIGN(TestConfirmBubbleModel
);
41 #endif // CHROME_BROWSER_UI_TEST_TEST_CONFIRM_BUBBLE_MODEL_H_