| Index: trunk/src/base/win/message_window.h
|
| ===================================================================
|
| --- trunk/src/base/win/message_window.h (revision 201972)
|
| +++ trunk/src/base/win/message_window.h (working copy)
|
| @@ -1,67 +0,0 @@
|
| -// Copyright 2013 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 BASE_WIN_MESSAGE_WINDOW_H_
|
| -#define BASE_WIN_MESSAGE_WINDOW_H_
|
| -
|
| -#include <windows.h>
|
| -
|
| -#include <string>
|
| -
|
| -#include "base/base_export.h"
|
| -#include "base/basictypes.h"
|
| -#include "base/compiler_specific.h"
|
| -#include "base/threading/non_thread_safe.h"
|
| -
|
| -namespace base {
|
| -namespace win {
|
| -
|
| -// Implements a message-only window.
|
| -class BASE_EXPORT MessageWindow : base::NonThreadSafe {
|
| - public:
|
| - // Handles incoming window messages.
|
| - class BASE_EXPORT Delegate {
|
| - public:
|
| - virtual ~Delegate() {}
|
| -
|
| - virtual bool HandleMessage(HWND hwnd,
|
| - UINT message,
|
| - WPARAM wparam,
|
| - LPARAM lparam,
|
| - LRESULT* result) = 0;
|
| - };
|
| -
|
| - MessageWindow();
|
| - ~MessageWindow();
|
| -
|
| - // Registers the window class and creates the window. The incoming messages
|
| - // will be handled by |delegate|. |delegate| must outlive |this|.
|
| - bool Create(Delegate* delegate);
|
| -
|
| - HWND hwnd() const { return window_; }
|
| -
|
| - private:
|
| - // Invoked by the OS to process incoming window messages.
|
| - static LRESULT CALLBACK WindowProc(HWND hwnd, UINT message, WPARAM wparam,
|
| - LPARAM lparam);
|
| -
|
| - // Atom representing the registered window class.
|
| - ATOM atom_;
|
| -
|
| - // MessageWindow class name.
|
| - std::string class_name_;
|
| -
|
| - // Instance of the module containing the window procedure.
|
| - HINSTANCE instance_;
|
| -
|
| - // Handle of the input window.
|
| - HWND window_;
|
| -
|
| - DISALLOW_COPY_AND_ASSIGN(MessageWindow);
|
| -};
|
| -
|
| -} // namespace win
|
| -} // namespace base
|
| -
|
| -#endif // BASE_WIN_MESSAGE_WINDOW_H_
|
|
|