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

Side by Side Diff: chrome/browser/ui/views/frame/browser_view.cc

Issue 2158653002: Linux UI: Add IsVisibleOnAllWorkspaces() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add more mac impls Created 4 years, 5 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 | « chrome/browser/ui/views/frame/browser_view.h ('k') | chrome/test/base/test_browser_window.h » ('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 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 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 #include "chrome/browser/ui/views/frame/browser_view.h" 5 #include "chrome/browser/ui/views/frame/browser_view.h"
6 6
7 #include <stdint.h> 7 #include <stdint.h>
8 8
9 #include <algorithm> 9 #include <algorithm>
10 #include <memory> 10 #include <memory>
(...skipping 2523 matching lines...) Expand 10 before | Expand all | Expand 10 after
2534 const extensions::Extension* extension, 2534 const extensions::Extension* extension,
2535 const base::Callback<void(ImeWarningBubblePermissionStatus status)>& 2535 const base::Callback<void(ImeWarningBubblePermissionStatus status)>&
2536 callback) { 2536 callback) {
2537 ImeWarningBubbleView::ShowBubble(extension, this, callback); 2537 ImeWarningBubbleView::ShowBubble(extension, this, callback);
2538 } 2538 }
2539 2539
2540 std::string BrowserView::GetWorkspace() const { 2540 std::string BrowserView::GetWorkspace() const {
2541 return frame_->GetWorkspace(); 2541 return frame_->GetWorkspace();
2542 } 2542 }
2543 2543
2544 bool BrowserView::IsVisibleOnAllWorkspaces() const {
2545 return frame_->IsVisibleOnAllWorkspaces();
2546 }
2547
2544 bool BrowserView::DoCutCopyPasteForWebContents( 2548 bool BrowserView::DoCutCopyPasteForWebContents(
2545 WebContents* contents, 2549 WebContents* contents,
2546 void (WebContents::*method)()) { 2550 void (WebContents::*method)()) {
2547 // It's possible for a non-null WebContents to have a null RWHV if it's 2551 // It's possible for a non-null WebContents to have a null RWHV if it's
2548 // crashed or otherwise been killed. 2552 // crashed or otherwise been killed.
2549 content::RenderWidgetHostView* rwhv = contents->GetRenderWidgetHostView(); 2553 content::RenderWidgetHostView* rwhv = contents->GetRenderWidgetHostView();
2550 if (!rwhv || !rwhv->HasFocus()) 2554 if (!rwhv || !rwhv->HasFocus())
2551 return false; 2555 return false;
2552 // Calling |method| rather than using a fake key event is important since a 2556 // Calling |method| rather than using a fake key event is important since a
2553 // fake event might be consumed by the web content. 2557 // fake event might be consumed by the web content.
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
2649 } 2653 }
2650 2654
2651 extensions::ActiveTabPermissionGranter* 2655 extensions::ActiveTabPermissionGranter*
2652 BrowserView::GetActiveTabPermissionGranter() { 2656 BrowserView::GetActiveTabPermissionGranter() {
2653 content::WebContents* web_contents = GetActiveWebContents(); 2657 content::WebContents* web_contents = GetActiveWebContents();
2654 if (!web_contents) 2658 if (!web_contents)
2655 return nullptr; 2659 return nullptr;
2656 return extensions::TabHelper::FromWebContents(web_contents) 2660 return extensions::TabHelper::FromWebContents(web_contents)
2657 ->active_tab_permission_granter(); 2661 ->active_tab_permission_granter();
2658 } 2662 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/frame/browser_view.h ('k') | chrome/test/base/test_browser_window.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698