From 1e106a503a3ffd63e37e96a8e071c16e6bf63f03 Mon Sep 17 00:00:00 2001
From: Kalyan Kondapally <kalyan.kondapally@intel.com>
Date: Sun, 19 Oct 2014 19:55:16 -0700
Subject: [PATCH] PlatformWindow: Add needed support in PlatformWindow.

This patch adds necessary API support in PlatformWindow. The changes
need to be evaluated further before trying to upstream them.
---
 ui/platform_window/platform_window.h | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/ui/platform_window/platform_window.h b/ui/platform_window/platform_window.h
index d5f5750..14aada4 100644
--- a/ui/platform_window/platform_window.h
+++ b/ui/platform_window/platform_window.h
@@ -22,8 +22,21 @@ class PlatformWindowDelegate;
 // underlying platform windowing system (i.e. X11/Win/OSX).
 class PlatformWindow {
  public:
+   enum PlatformWindowType {
+     PLATFORM_WINDOW_UNKNOWN,
+     PLATFORM_WINDOW_TYPE_TOOLTIP,
+     PLATFORM_WINDOW_TYPE_POPUP,
+     PLATFORM_WINDOW_TYPE_MENU,
+     PLATFORM_WINDOW_TYPE_BUBBLE,
+     PLATFORM_WINDOW_TYPE_WINDOW,
+     PLATFORM_WINDOW_TYPE_WINDOW_FRAMELESS
+   };
+
   virtual ~PlatformWindow() {}

+  virtual void InitPlatformWindow(PlatformWindowType type,
+                                  gfx::AcceleratedWidget parent_window) { }
+
   virtual void Show() = 0;
   virtual void Hide() = 0;
   virtual void Close() = 0;
--
1.9.1


Add needed support in PlatformWindow.
Add needed support in PlatformWindow.
