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 358 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
369 content::WebContents* web_contents, | 369 content::WebContents* web_contents, |
370 SkColor color, | 370 SkColor color, |
371 const std::vector<content::ColorSuggestion>& suggestions) override; | 371 const std::vector<content::ColorSuggestion>& suggestions) override; |
372 void RunFileChooser(content::WebContents* tab, | 372 void RunFileChooser(content::WebContents* tab, |
373 const content::FileChooserParams& params) override; | 373 const content::FileChooserParams& params) override; |
374 bool IsPopupOrPanel(const content::WebContents* source) const override; | 374 bool IsPopupOrPanel(const content::WebContents* source) const override; |
375 void MoveContents(content::WebContents* source, | 375 void MoveContents(content::WebContents* source, |
376 const gfx::Rect& pos) override; | 376 const gfx::Rect& pos) override; |
377 void NavigationStateChanged(content::WebContents* source, | 377 void NavigationStateChanged(content::WebContents* source, |
378 content::InvalidateTypes changed_flags) override; | 378 content::InvalidateTypes changed_flags) override; |
379 void ToggleFullscreenModeForTab(content::WebContents* source, | 379 void EnterFullscreenModeForTab(content::WebContents* source, |
380 bool enter_fullscreen) override; | 380 const GURL& origin) override; |
| 381 void ExitFullscreenModeForTab(content::WebContents* source) override; |
381 bool IsFullscreenForTabOrPending( | 382 bool IsFullscreenForTabOrPending( |
382 const content::WebContents* source) const override; | 383 const content::WebContents* source) const override; |
383 void RequestMediaAccessPermission( | 384 void RequestMediaAccessPermission( |
384 content::WebContents* web_contents, | 385 content::WebContents* web_contents, |
385 const content::MediaStreamRequest& request, | 386 const content::MediaStreamRequest& request, |
386 const content::MediaResponseCallback& callback) override; | 387 const content::MediaResponseCallback& callback) override; |
387 bool CheckMediaAccessPermission(content::WebContents* web_contents, | 388 bool CheckMediaAccessPermission(content::WebContents* web_contents, |
388 const GURL& security_origin, | 389 const GURL& security_origin, |
389 content::MediaStreamType type) override; | 390 content::MediaStreamType type) override; |
390 content::WebContents* OpenURLFromTab( | 391 content::WebContents* OpenURLFromTab( |
(...skipping 23 matching lines...) Expand all Loading... |
414 // content::NotificationObserver implementation. | 415 // content::NotificationObserver implementation. |
415 void Observe(int type, | 416 void Observe(int type, |
416 const content::NotificationSource& source, | 417 const content::NotificationSource& source, |
417 const content::NotificationDetails& details) override; | 418 const content::NotificationDetails& details) override; |
418 | 419 |
419 // web_modal::WebContentsModalDialogManagerDelegate implementation. | 420 // web_modal::WebContentsModalDialogManagerDelegate implementation. |
420 void SetWebContentsBlocked(content::WebContents* web_contents, | 421 void SetWebContentsBlocked(content::WebContents* web_contents, |
421 bool blocked) override; | 422 bool blocked) override; |
422 bool IsWebContentsVisible(content::WebContents* web_contents) override; | 423 bool IsWebContentsVisible(content::WebContents* web_contents) override; |
423 | 424 |
| 425 void ToggleFullscreenModeForTab(content::WebContents* source, |
| 426 bool enter_fullscreen); |
| 427 |
424 // Saves the window geometry/position/screen bounds. | 428 // Saves the window geometry/position/screen bounds. |
425 void SaveWindowPosition(); | 429 void SaveWindowPosition(); |
426 | 430 |
427 // Helper method to adjust the cached bounds so that we can make sure it can | 431 // Helper method to adjust the cached bounds so that we can make sure it can |
428 // be visible on the screen. See http://crbug.com/145752. | 432 // be visible on the screen. See http://crbug.com/145752. |
429 void AdjustBoundsToBeVisibleOnScreen(const gfx::Rect& cached_bounds, | 433 void AdjustBoundsToBeVisibleOnScreen(const gfx::Rect& cached_bounds, |
430 const gfx::Rect& cached_screen_bounds, | 434 const gfx::Rect& cached_screen_bounds, |
431 const gfx::Rect& current_screen_bounds, | 435 const gfx::Rect& current_screen_bounds, |
432 const gfx::Size& minimum_size, | 436 const gfx::Size& minimum_size, |
433 gfx::Rect* bounds) const; | 437 gfx::Rect* bounds) const; |
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
551 bool requested_alpha_enabled_; | 555 bool requested_alpha_enabled_; |
552 | 556 |
553 base::WeakPtrFactory<AppWindow> image_loader_ptr_factory_; | 557 base::WeakPtrFactory<AppWindow> image_loader_ptr_factory_; |
554 | 558 |
555 DISALLOW_COPY_AND_ASSIGN(AppWindow); | 559 DISALLOW_COPY_AND_ASSIGN(AppWindow); |
556 }; | 560 }; |
557 | 561 |
558 } // namespace extensions | 562 } // namespace extensions |
559 | 563 |
560 #endif // EXTENSIONS_BROWSER_APP_WINDOW_APP_WINDOW_H_ | 564 #endif // EXTENSIONS_BROWSER_APP_WINDOW_APP_WINDOW_H_ |
OLD | NEW |