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

Side by Side Diff: extensions/browser/app_window/app_window.h

Issue 1549643002: Switch to standard integer types in extensions/browser/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@clean
Patch Set: Created 5 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef EXTENSIONS_BROWSER_APP_WINDOW_APP_WINDOW_H_ 5 #ifndef EXTENSIONS_BROWSER_APP_WINDOW_APP_WINDOW_H_
6 #define EXTENSIONS_BROWSER_APP_WINDOW_APP_WINDOW_H_ 6 #define EXTENSIONS_BROWSER_APP_WINDOW_APP_WINDOW_H_
7 7
8 #include <stdint.h>
9
8 #include <string> 10 #include <string>
9 #include <utility> 11 #include <utility>
10 #include <vector> 12 #include <vector>
11 13
14 #include "base/macros.h"
12 #include "base/memory/scoped_ptr.h" 15 #include "base/memory/scoped_ptr.h"
13 #include "base/memory/weak_ptr.h" 16 #include "base/memory/weak_ptr.h"
14 #include "components/sessions/core/session_id.h" 17 #include "components/sessions/core/session_id.h"
15 #include "components/web_modal/web_contents_modal_dialog_manager_delegate.h" 18 #include "components/web_modal/web_contents_modal_dialog_manager_delegate.h"
16 #include "content/public/browser/web_contents_delegate.h" 19 #include "content/public/browser/web_contents_delegate.h"
17 #include "content/public/browser/web_contents_observer.h" 20 #include "content/public/browser/web_contents_observer.h"
18 #include "extensions/browser/extension_function_dispatcher.h" 21 #include "extensions/browser/extension_function_dispatcher.h"
19 #include "extensions/browser/extension_icon_image.h" 22 #include "extensions/browser/extension_icon_image.h"
20 #include "extensions/browser/extension_registry_observer.h" 23 #include "extensions/browser/extension_registry_observer.h"
21 #include "ui/base/ui_base_types.h" // WindowShowState 24 #include "ui/base/ui_base_types.h" // WindowShowState
(...skipping 29 matching lines...) Expand all
51 class AppWindowContents { 54 class AppWindowContents {
52 public: 55 public:
53 AppWindowContents() {} 56 AppWindowContents() {}
54 virtual ~AppWindowContents() {} 57 virtual ~AppWindowContents() {}
55 58
56 // Called to initialize the WebContents, before the app window is created. 59 // Called to initialize the WebContents, before the app window is created.
57 virtual void Initialize(content::BrowserContext* context, 60 virtual void Initialize(content::BrowserContext* context,
58 const GURL& url) = 0; 61 const GURL& url) = 0;
59 62
60 // Called to load the contents, after the app window is created. 63 // Called to load the contents, after the app window is created.
61 virtual void LoadContents(int32 creator_process_id) = 0; 64 virtual void LoadContents(int32_t creator_process_id) = 0;
62 65
63 // Called when the native window changes. 66 // Called when the native window changes.
64 virtual void NativeWindowChanged(NativeAppWindow* native_app_window) = 0; 67 virtual void NativeWindowChanged(NativeAppWindow* native_app_window) = 0;
65 68
66 // Called when the native window closes. 69 // Called when the native window closes.
67 virtual void NativeWindowClosed() = 0; 70 virtual void NativeWindowClosed() = 0;
68 71
69 // Called in tests when the window is shown 72 // Called in tests when the window is shown
70 virtual void DispatchWindowShownForTests() const = 0; 73 virtual void DispatchWindowShownForTests() const = 0;
71 74
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
157 // decorations). 160 // decorations).
158 BoundsSpecification content_spec; 161 BoundsSpecification content_spec;
159 162
160 // The initial window/outer bounds specification (including window 163 // The initial window/outer bounds specification (including window
161 // decorations). 164 // decorations).
162 BoundsSpecification window_spec; 165 BoundsSpecification window_spec;
163 166
164 std::string window_key; 167 std::string window_key;
165 168
166 // The process ID of the process that requested the create. 169 // The process ID of the process that requested the create.
167 int32 creator_process_id; 170 int32_t creator_process_id;
168 171
169 // Initial state of the window. 172 // Initial state of the window.
170 ui::WindowShowState state; 173 ui::WindowShowState state;
171 174
172 // If true, don't show the window after creation. 175 // If true, don't show the window after creation.
173 bool hidden; 176 bool hidden;
174 177
175 // If true, the window will be resizable by the user. Defaults to true. 178 // If true, the window will be resizable by the user. Defaults to true.
176 bool resizable; 179 bool resizable;
177 180
(...skipping 385 matching lines...) Expand 10 before | Expand all | Expand 10 after
563 base::Closure on_first_commit_callback_; 566 base::Closure on_first_commit_callback_;
564 567
565 base::WeakPtrFactory<AppWindow> image_loader_ptr_factory_; 568 base::WeakPtrFactory<AppWindow> image_loader_ptr_factory_;
566 569
567 DISALLOW_COPY_AND_ASSIGN(AppWindow); 570 DISALLOW_COPY_AND_ASSIGN(AppWindow);
568 }; 571 };
569 572
570 } // namespace extensions 573 } // namespace extensions
571 574
572 #endif // EXTENSIONS_BROWSER_APP_WINDOW_APP_WINDOW_H_ 575 #endif // EXTENSIONS_BROWSER_APP_WINDOW_APP_WINDOW_H_
OLDNEW
« no previous file with comments | « extensions/browser/app_window/app_web_contents_helper.h ('k') | extensions/browser/app_window/app_window.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698