Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4457)

Unified Diff: chrome/browser/input_window_dialog.h

Issue 5582002: Move:... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 10 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/history/redirect_uitest.cc ('k') | chrome/browser/input_window_dialog_gtk.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/input_window_dialog.h
===================================================================
--- chrome/browser/input_window_dialog.h (revision 68008)
+++ chrome/browser/input_window_dialog.h (working copy)
@@ -1,53 +0,0 @@
-// Copyright (c) 2009 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_INPUT_WINDOW_DIALOG_H_
-#define CHROME_BROWSER_INPUT_WINDOW_DIALOG_H_
-#pragma once
-
-#include <string>
-
-#include "base/basictypes.h"
-#include "gfx/native_widget_types.h"
-
-// Cross platform access to a modal input window.
-class InputWindowDialog {
- public:
- class Delegate {
- public:
- virtual ~Delegate() {}
-
- // Checks whether |text| is a valid input string.
- virtual bool IsValid(const std::wstring& text) = 0;
-
- // Callback for when the user clicks the OK button.
- virtual void InputAccepted(const std::wstring& text) = 0;
-
- // Callback for when the user clicks the Cancel button.
- virtual void InputCanceled() = 0;
- };
-
- // Creates a new input window dialog parented to |parent|. Ownership of
- // |delegate| is taken by InputWindowDialog or InputWindowDialog's owner.
- static InputWindowDialog* Create(gfx::NativeWindow parent,
- const std::wstring& window_title,
- const std::wstring& label,
- const std::wstring& contents,
- Delegate* delegate);
-
- // Displays the window.
- virtual void Show() = 0;
-
- // Closes the window.
- virtual void Close() = 0;
-
- protected:
- InputWindowDialog() {}
- virtual ~InputWindowDialog() {}
-
- private:
- DISALLOW_COPY_AND_ASSIGN(InputWindowDialog);
-};
-
-#endif // CHROME_BROWSER_INPUT_WINDOW_DIALOG_H_
« no previous file with comments | « chrome/browser/history/redirect_uitest.cc ('k') | chrome/browser/input_window_dialog_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698