| OLD | NEW | 
|---|
| 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 <string> | 8 #include <string> | 
| 9 #include <vector> | 9 #include <vector> | 
| 10 | 10 | 
| (...skipping 314 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 325   void SetAlwaysOnTop(bool always_on_top); | 325   void SetAlwaysOnTop(bool always_on_top); | 
| 326 | 326 | 
| 327   // Whether the always-on-top property has been set by the chrome.app.window | 327   // Whether the always-on-top property has been set by the chrome.app.window | 
| 328   // API. Note that the actual value of this property in the native app window | 328   // API. Note that the actual value of this property in the native app window | 
| 329   // may be false if the bit is silently switched off for security reasons. | 329   // may be false if the bit is silently switched off for security reasons. | 
| 330   bool IsAlwaysOnTop() const; | 330   bool IsAlwaysOnTop() const; | 
| 331 | 331 | 
| 332   // Restores the always-on-top property according to |cached_always_on_top_|. | 332   // Restores the always-on-top property according to |cached_always_on_top_|. | 
| 333   void RestoreAlwaysOnTop(); | 333   void RestoreAlwaysOnTop(); | 
| 334 | 334 | 
| 335   // Set whether the window should get even reserved keys (modulo platform |  | 
| 336   // restrictions). |  | 
| 337   void SetInterceptAllKeys(bool want_all_keys); |  | 
| 338 |  | 
| 339   // Retrieve the current state of the app window as a dictionary, to pass to | 335   // Retrieve the current state of the app window as a dictionary, to pass to | 
| 340   // the renderer. | 336   // the renderer. | 
| 341   void GetSerializedState(base::DictionaryValue* properties) const; | 337   void GetSerializedState(base::DictionaryValue* properties) const; | 
| 342 | 338 | 
| 343   // Called by the window API when events can be sent to the window for this | 339   // Called by the window API when events can be sent to the window for this | 
| 344   // app. | 340   // app. | 
| 345   void WindowEventsReady(); | 341   void WindowEventsReady(); | 
| 346 | 342 | 
| 347   // Notifies the window's contents that the render view is ready and it can | 343   // Notifies the window's contents that the render view is ready and it can | 
| 348   // unblock resource requests. | 344   // unblock resource requests. | 
| (...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 556   bool is_ime_window_; | 552   bool is_ime_window_; | 
| 557 | 553 | 
| 558   base::WeakPtrFactory<AppWindow> image_loader_ptr_factory_; | 554   base::WeakPtrFactory<AppWindow> image_loader_ptr_factory_; | 
| 559 | 555 | 
| 560   DISALLOW_COPY_AND_ASSIGN(AppWindow); | 556   DISALLOW_COPY_AND_ASSIGN(AppWindow); | 
| 561 }; | 557 }; | 
| 562 | 558 | 
| 563 }  // namespace extensions | 559 }  // namespace extensions | 
| 564 | 560 | 
| 565 #endif  // EXTENSIONS_BROWSER_APP_WINDOW_APP_WINDOW_H_ | 561 #endif  // EXTENSIONS_BROWSER_APP_WINDOW_APP_WINDOW_H_ | 
| OLD | NEW | 
|---|