Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(157)

Side by Side Diff: extensions/browser/app_window/app_window.h

Issue 789533002: Fullscreen: make fullscreen requests come from RenderFrame (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: make try happy Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « content/shell/browser/shell.cc ('k') | extensions/browser/app_window/app_window.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
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_
OLDNEW
« no previous file with comments | « content/shell/browser/shell.cc ('k') | extensions/browser/app_window/app_window.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698