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 <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
(...skipping 371 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
382 | 382 |
383 protected: | 383 protected: |
384 ~AppWindow() override; | 384 ~AppWindow() override; |
385 | 385 |
386 private: | 386 private: |
387 // PlatformAppBrowserTest needs access to web_contents() | 387 // PlatformAppBrowserTest needs access to web_contents() |
388 friend class PlatformAppBrowserTest; | 388 friend class PlatformAppBrowserTest; |
389 | 389 |
390 // content::WebContentsDelegate implementation. | 390 // content::WebContentsDelegate implementation. |
391 void CloseContents(content::WebContents* contents) override; | 391 void CloseContents(content::WebContents* contents) override; |
392 bool ShouldSuppressDialogs(content::WebContents* source) override; | 392 bool ShouldSuppressDialogs(content::WebContents* source, |
| 393 bool before_unload) override; |
393 content::ColorChooser* OpenColorChooser( | 394 content::ColorChooser* OpenColorChooser( |
394 content::WebContents* web_contents, | 395 content::WebContents* web_contents, |
395 SkColor color, | 396 SkColor color, |
396 const std::vector<content::ColorSuggestion>& suggestions) override; | 397 const std::vector<content::ColorSuggestion>& suggestions) override; |
397 void RunFileChooser(content::RenderFrameHost* render_frame_host, | 398 void RunFileChooser(content::RenderFrameHost* render_frame_host, |
398 const content::FileChooserParams& params) override; | 399 const content::FileChooserParams& params) override; |
399 bool IsPopupOrPanel(const content::WebContents* source) const override; | 400 bool IsPopupOrPanel(const content::WebContents* source) const override; |
400 void MoveContents(content::WebContents* source, | 401 void MoveContents(content::WebContents* source, |
401 const gfx::Rect& pos) override; | 402 const gfx::Rect& pos) override; |
402 void NavigationStateChanged(content::WebContents* source, | 403 void NavigationStateChanged(content::WebContents* source, |
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
584 base::Closure on_first_commit_callback_; | 585 base::Closure on_first_commit_callback_; |
585 | 586 |
586 base::WeakPtrFactory<AppWindow> image_loader_ptr_factory_; | 587 base::WeakPtrFactory<AppWindow> image_loader_ptr_factory_; |
587 | 588 |
588 DISALLOW_COPY_AND_ASSIGN(AppWindow); | 589 DISALLOW_COPY_AND_ASSIGN(AppWindow); |
589 }; | 590 }; |
590 | 591 |
591 } // namespace extensions | 592 } // namespace extensions |
592 | 593 |
593 #endif // EXTENSIONS_BROWSER_APP_WINDOW_APP_WINDOW_H_ | 594 #endif // EXTENSIONS_BROWSER_APP_WINDOW_APP_WINDOW_H_ |
OLD | NEW |