Chromium Code Reviews| 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 333 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 344 // the renderer. | 344 // the renderer. |
| 345 void GetSerializedState(base::DictionaryValue* properties) const; | 345 void GetSerializedState(base::DictionaryValue* properties) const; |
| 346 | 346 |
| 347 // Called by the window API when events can be sent to the window for this | 347 // Called by the window API when events can be sent to the window for this |
| 348 // app. | 348 // app. |
| 349 void WindowEventsReady(); | 349 void WindowEventsReady(); |
| 350 | 350 |
| 351 // Whether the app window wants to be alpha enabled. | 351 // Whether the app window wants to be alpha enabled. |
| 352 bool requested_alpha_enabled() const { return requested_alpha_enabled_; } | 352 bool requested_alpha_enabled() const { return requested_alpha_enabled_; } |
| 353 | 353 |
| 354 // Whether the app window is created by IME extensions. | |
|
Mr4D (OOO till 08-26)
2015/03/02 16:44:12
Hmm. Since there is only a single use case for thi
bshe
2015/03/02 17:40:36
Right. It is only used for one case now. But I am
| |
| 355 bool is_ime_window() const { return is_ime_window_; } | |
| 356 | |
| 354 void SetAppWindowContentsForTesting(scoped_ptr<AppWindowContents> contents) { | 357 void SetAppWindowContentsForTesting(scoped_ptr<AppWindowContents> contents) { |
| 355 app_window_contents_ = contents.Pass(); | 358 app_window_contents_ = contents.Pass(); |
| 356 } | 359 } |
| 357 | 360 |
| 358 protected: | 361 protected: |
| 359 ~AppWindow() override; | 362 ~AppWindow() override; |
| 360 | 363 |
| 361 private: | 364 private: |
| 362 // PlatformAppBrowserTest needs access to web_contents() | 365 // PlatformAppBrowserTest needs access to web_contents() |
| 363 friend class PlatformAppBrowserTest; | 366 friend class PlatformAppBrowserTest; |
| (...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 548 // Cache the desired value of the always-on-top property. When windows enter | 551 // Cache the desired value of the always-on-top property. When windows enter |
| 549 // fullscreen or overlap the Windows taskbar, this property will be | 552 // fullscreen or overlap the Windows taskbar, this property will be |
| 550 // automatically and silently switched off for security reasons. It is | 553 // automatically and silently switched off for security reasons. It is |
| 551 // reinstated when the window exits fullscreen and moves away from the | 554 // reinstated when the window exits fullscreen and moves away from the |
| 552 // taskbar. | 555 // taskbar. |
| 553 bool cached_always_on_top_; | 556 bool cached_always_on_top_; |
| 554 | 557 |
| 555 // Whether |alpha_enabled| was set in the CreateParams. | 558 // Whether |alpha_enabled| was set in the CreateParams. |
| 556 bool requested_alpha_enabled_; | 559 bool requested_alpha_enabled_; |
| 557 | 560 |
| 561 // Whether |is_ime_window| was set in the CreateParams. | |
| 562 bool is_ime_window_; | |
| 563 | |
| 558 base::WeakPtrFactory<AppWindow> image_loader_ptr_factory_; | 564 base::WeakPtrFactory<AppWindow> image_loader_ptr_factory_; |
| 559 | 565 |
| 560 DISALLOW_COPY_AND_ASSIGN(AppWindow); | 566 DISALLOW_COPY_AND_ASSIGN(AppWindow); |
| 561 }; | 567 }; |
| 562 | 568 |
| 563 } // namespace extensions | 569 } // namespace extensions |
| 564 | 570 |
| 565 #endif // EXTENSIONS_BROWSER_APP_WINDOW_APP_WINDOW_H_ | 571 #endif // EXTENSIONS_BROWSER_APP_WINDOW_APP_WINDOW_H_ |
| OLD | NEW |