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 24 matching lines...) Expand all Loading... |
415 // content::NotificationObserver implementation. | 416 // content::NotificationObserver implementation. |
416 void Observe(int type, | 417 void Observe(int type, |
417 const content::NotificationSource& source, | 418 const content::NotificationSource& source, |
418 const content::NotificationDetails& details) override; | 419 const content::NotificationDetails& details) override; |
419 | 420 |
420 // web_modal::WebContentsModalDialogManagerDelegate implementation. | 421 // web_modal::WebContentsModalDialogManagerDelegate implementation. |
421 void SetWebContentsBlocked(content::WebContents* web_contents, | 422 void SetWebContentsBlocked(content::WebContents* web_contents, |
422 bool blocked) override; | 423 bool blocked) override; |
423 bool IsWebContentsVisible(content::WebContents* web_contents) override; | 424 bool IsWebContentsVisible(content::WebContents* web_contents) override; |
424 | 425 |
| 426 void ToggleFullscreenModeForTab(content::WebContents* source, |
| 427 bool enter_fullscreen); |
| 428 |
425 // Saves the window geometry/position/screen bounds. | 429 // Saves the window geometry/position/screen bounds. |
426 void SaveWindowPosition(); | 430 void SaveWindowPosition(); |
427 | 431 |
428 // Helper method to adjust the cached bounds so that we can make sure it can | 432 // Helper method to adjust the cached bounds so that we can make sure it can |
429 // be visible on the screen. See http://crbug.com/145752. | 433 // be visible on the screen. See http://crbug.com/145752. |
430 void AdjustBoundsToBeVisibleOnScreen(const gfx::Rect& cached_bounds, | 434 void AdjustBoundsToBeVisibleOnScreen(const gfx::Rect& cached_bounds, |
431 const gfx::Rect& cached_screen_bounds, | 435 const gfx::Rect& cached_screen_bounds, |
432 const gfx::Rect& current_screen_bounds, | 436 const gfx::Rect& current_screen_bounds, |
433 const gfx::Size& minimum_size, | 437 const gfx::Size& minimum_size, |
434 gfx::Rect* bounds) const; | 438 gfx::Rect* bounds) const; |
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
552 bool requested_alpha_enabled_; | 556 bool requested_alpha_enabled_; |
553 | 557 |
554 base::WeakPtrFactory<AppWindow> image_loader_ptr_factory_; | 558 base::WeakPtrFactory<AppWindow> image_loader_ptr_factory_; |
555 | 559 |
556 DISALLOW_COPY_AND_ASSIGN(AppWindow); | 560 DISALLOW_COPY_AND_ASSIGN(AppWindow); |
557 }; | 561 }; |
558 | 562 |
559 } // namespace extensions | 563 } // namespace extensions |
560 | 564 |
561 #endif // EXTENSIONS_BROWSER_APP_WINDOW_APP_WINDOW_H_ | 565 #endif // EXTENSIONS_BROWSER_APP_WINDOW_APP_WINDOW_H_ |
OLD | NEW |