summaryrefslogtreecommitdiffstats
path: root/chrome/browser/views/modal_dialog_delegate.h
blob: 4fe2c1d6a844a1dda13f8ec1057196be15fb3ec3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
// Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef CHROME_BROWSER_VIEWS_MODAL_DIALOG_DELEGATE_H_
#define CHROME_BROWSER_VIEWS_MODAL_DIALOG_DELEGATE_H_

#include <string>

#include "views/window/dialog_delegate.h"

namespace views {
class Window;
}

class ModalDialogDelegate : public views::DialogDelegate {
 public:
  virtual ~ModalDialogDelegate() {}
  // Methods called from AppModalDialog.
  virtual gfx::NativeWindow GetDialogRootWindow() = 0;
  virtual void ShowModalDialog();
  virtual void ActivateModalDialog();
  virtual void CloseModalDialog();
 protected:
  ModalDialogDelegate();

  // The dialog if it is currently visible.
  views::Window* dialog_;
};

#endif  // CHROME_BROWSER_VIEWS_MODAL_DIALOG_DELEGATE_H_