Index: generated_files_will_not_submit/windows.h |
diff --git a/generated_files_will_not_submit/windows.h b/generated_files_will_not_submit/windows.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..19b877674d753f6be2cdefa1535d6deb025e0489 |
--- /dev/null |
+++ b/generated_files_will_not_submit/windows.h |
@@ -0,0 +1,357 @@ |
+// Copyright (c) 2012 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. |
+ |
+// GENERATED FROM THE API DEFINITION IN |
+// chrome/common/extensions/api/windows.json |
+// DO NOT EDIT. |
+ |
+#ifndef CHROME_COMMON_EXTENSIONS_API_WINDOWS_H__ |
+#define CHROME_COMMON_EXTENSIONS_API_WINDOWS_H__ |
+#pragma once |
+ |
+#include <string> |
+#include <vector> |
+ |
+#include "base/basictypes.h" |
+#include "base/memory/linked_ptr.h" |
+#include "base/memory/scoped_ptr.h" |
+#include "base/values.h" |
+ |
+using base::Value; |
+using base::DictionaryValue; |
+using base::ListValue; |
+ |
+namespace extensions { |
+namespace api { |
+ |
+namespace tabs { |
+struct Tab; |
+} |
+ |
+namespace windows { |
+ |
+// |
+// Types |
+// |
+ |
+struct Window { |
+ ~Window(); |
+ Window(); |
+ |
+ // Array of $ref:Tab objects representing the current tabs in the window. |
+ scoped_ptr<std::vector<linked_ptr<tabs::Tab> > > tabs; |
+ |
+ // The offset of the window from the top edge of the screen in pixels. |
+ int top; |
+ |
+ // The height of the window in pixels. |
+ int height; |
+ |
+ // The width of the window in pixels. |
+ int width; |
+ |
+ // The state of this browser window. |
+ std::string state; |
+ |
+ // Whether the window is currently the focused window. |
+ bool focused; |
+ |
+ // The offset of the window from the left edge of the screen in pixels. |
+ int left; |
+ |
+ // The type of browser window this is. |
+ std::string type; |
+ |
+ // The ID of the window. Window IDs are unique within a browser session. |
+ int id; |
+ |
+ // Whether the window is incognito. |
+ bool incognito; |
+ |
+ // Populates a Window object from a Value. Returns whether |out| was |
+ // successfully populated. |
+ static bool Populate(const Value& value, Window* out); |
+ |
+ // Returns a new DictionaryValue representing the serialized form of this |
+ // Window object. Passesownership to caller. |
+ DictionaryValue* ToValue() const; |
+ |
+ private: |
+ DISALLOW_COPY_AND_ASSIGN(Window); |
+}; |
+ |
+// |
+// Functions |
+// |
+ |
+namespace Get { |
+ struct Params { |
+ struct GetInfo { |
+ ~GetInfo(); |
+ GetInfo(); |
+ |
+ // If true, the window object will have a <var>tabs</var> property that |
+ // contains a list of the $ref:Tab objects |
+ scoped_ptr<bool> populate; |
+ |
+ // Populates a GetInfo object from a Value. Returns whether |out| was |
+ // successfully populated. |
+ static bool Populate(const Value& value, GetInfo* out); |
+ |
+ |
+ private: |
+ DISALLOW_COPY_AND_ASSIGN(GetInfo); |
+ }; |
+ |
+ int window_id; |
+ scoped_ptr<GetInfo> get_info; |
+ |
+ ~Params(); |
+ |
+ static scoped_ptr<Params> Create(const ListValue& args); |
+ |
+ private: |
+ Params(); |
+ |
+ DISALLOW_COPY_AND_ASSIGN(Params); |
+ }; |
+ |
+ class Result { |
+ public: |
+ static Value* Create(const Window& window); |
+ |
+ private: |
+ Result() {}; |
+ DISALLOW_COPY_AND_ASSIGN(Result); |
+ }; |
+ |
+}; |
+ |
+namespace GetCurrent { |
+ struct Params { |
+ struct GetInfo { |
+ ~GetInfo(); |
+ GetInfo(); |
+ |
+ // If true, the window object will have a <var>tabs</var> property that |
+ // contains a list of the $ref:Tab objects |
+ scoped_ptr<bool> populate; |
+ |
+ // Populates a GetInfo object from a Value. Returns whether |out| was |
+ // successfully populated. |
+ static bool Populate(const Value& value, GetInfo* out); |
+ |
+ |
+ private: |
+ DISALLOW_COPY_AND_ASSIGN(GetInfo); |
+ }; |
+ |
+ scoped_ptr<GetInfo> get_info; |
+ |
+ ~Params(); |
+ |
+ static scoped_ptr<Params> Create(const ListValue& args); |
+ |
+ private: |
+ Params(); |
+ |
+ DISALLOW_COPY_AND_ASSIGN(Params); |
+ }; |
+ |
+ class Result { |
+ public: |
+ static Value* Create(const Window& window); |
+ |
+ private: |
+ Result() {}; |
+ DISALLOW_COPY_AND_ASSIGN(Result); |
+ }; |
+ |
+}; |
+ |
+namespace GetAll { |
+ struct Params { |
+ struct GetInfo { |
+ ~GetInfo(); |
+ GetInfo(); |
+ |
+ // If true, each window object will have a <var>tabs</var> property that |
+ // contains a list of the $ref:Tab objects for that window. |
+ scoped_ptr<bool> populate; |
+ |
+ // Populates a GetInfo object from a Value. Returns whether |out| was |
+ // successfully populated. |
+ static bool Populate(const Value& value, GetInfo* out); |
+ |
+ |
+ private: |
+ DISALLOW_COPY_AND_ASSIGN(GetInfo); |
+ }; |
+ |
+ scoped_ptr<GetInfo> get_info; |
+ |
+ ~Params(); |
+ |
+ static scoped_ptr<Params> Create(const ListValue& args); |
+ |
+ private: |
+ Params(); |
+ |
+ DISALLOW_COPY_AND_ASSIGN(Params); |
+ }; |
+ |
+ class Result { |
+ public: |
+ static Value* Create(const std::vector<linked_ptr<Window> > windows); |
+ |
+ private: |
+ Result() {}; |
+ DISALLOW_COPY_AND_ASSIGN(Result); |
+ }; |
+ |
+}; |
+ |
+namespace Update { |
+ struct Params { |
+ struct UpdateInfo { |
+ ~UpdateInfo(); |
+ UpdateInfo(); |
+ |
+ // The offset from the top edge of the screen to move the window to in |
+ // pixels. This value is ignored for panels. |
+ scoped_ptr<int> top; |
+ |
+ // If true, causes the window to be displayed in a manner that draws the |
+ // user's attention to the window, without changing the focused window. The |
+ // effect lasts until the user changes focus to the window. This option has |
+ // no effect if the window already has focus. Set to false to cancel a |
+ // previous draw attention request. |
+ scoped_ptr<bool> draw_attention; |
+ |
+ // The height to resize the window to in pixels. This value is ignored for |
+ // panels. |
+ scoped_ptr<int> height; |
+ |
+ // The width to resize the window to in pixels. This value is ignored for |
+ // panels. |
+ scoped_ptr<int> width; |
+ |
+ // The new state of the window. The 'minimized' and 'maximized' states cannot |
+ // be combined with 'left', 'top', 'width' or 'height'. |
+ scoped_ptr<std::string> state; |
+ |
+ // If true, brings the window to the front. If false, brings the next window |
+ // in the z-order to the front. |
+ scoped_ptr<bool> focused; |
+ |
+ // The offset from the left edge of the screen to move the window to in |
+ // pixels. This value is ignored for panels. |
+ scoped_ptr<int> left; |
+ |
+ // Populates a UpdateInfo object from a Value. Returns whether |out| was |
+ // successfully populated. |
+ static bool Populate(const Value& value, UpdateInfo* out); |
+ |
+ |
+ private: |
+ DISALLOW_COPY_AND_ASSIGN(UpdateInfo); |
+ }; |
+ |
+ int window_id; |
+ UpdateInfo update_info; |
+ |
+ ~Params(); |
+ |
+ static scoped_ptr<Params> Create(const ListValue& args); |
+ |
+ private: |
+ Params(); |
+ |
+ DISALLOW_COPY_AND_ASSIGN(Params); |
+ }; |
+ |
+ class Result { |
+ public: |
+ static Value* Create(const Window& window); |
+ |
+ private: |
+ Result() {}; |
+ DISALLOW_COPY_AND_ASSIGN(Result); |
+ }; |
+ |
+}; |
+ |
+namespace Remove { |
+ struct Params { |
+ int window_id; |
+ |
+ ~Params(); |
+ |
+ static scoped_ptr<Params> Create(const ListValue& args); |
+ |
+ private: |
+ Params(); |
+ |
+ DISALLOW_COPY_AND_ASSIGN(Params); |
+ }; |
+ |
+ class Result { |
+ public: |
+ static Value* Create(); |
+ |
+ private: |
+ Result() {}; |
+ DISALLOW_COPY_AND_ASSIGN(Result); |
+ }; |
+ |
+}; |
+ |
+namespace GetLastFocused { |
+ struct Params { |
+ struct GetInfo { |
+ ~GetInfo(); |
+ GetInfo(); |
+ |
+ // If true, the window object will have a <var>tabs</var> property that |
+ // contains a list of the $ref:Tab objects |
+ scoped_ptr<bool> populate; |
+ |
+ // Populates a GetInfo object from a Value. Returns whether |out| was |
+ // successfully populated. |
+ static bool Populate(const Value& value, GetInfo* out); |
+ |
+ |
+ private: |
+ DISALLOW_COPY_AND_ASSIGN(GetInfo); |
+ }; |
+ |
+ scoped_ptr<GetInfo> get_info; |
+ |
+ ~Params(); |
+ |
+ static scoped_ptr<Params> Create(const ListValue& args); |
+ |
+ private: |
+ Params(); |
+ |
+ DISALLOW_COPY_AND_ASSIGN(Params); |
+ }; |
+ |
+ class Result { |
+ public: |
+ static Value* Create(const Window& window); |
+ |
+ private: |
+ Result() {}; |
+ DISALLOW_COPY_AND_ASSIGN(Result); |
+ }; |
+ |
+}; |
+ |
+ |
+} // windows |
+} // api |
+} // extensions |
+ |
+#endif // CHROME_COMMON_EXTENSIONS_API_WINDOWS_H__ |