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

Side by Side Diff: content/browser/web_contents/web_contents_view_aura.cc

Issue 1057873004: Pass a ui::PaintContext from ui::Layer to layer delegates. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: layer-paintcontext: mac Created 5 years, 8 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/browser/web_contents/web_contents_view_aura.h ('k') | ui/aura/bench/bench_main.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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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 "content/browser/web_contents/web_contents_view_aura.h" 5 #include "content/browser/web_contents/web_contents_view_aura.h"
6 6
7 #include "base/auto_reset.h" 7 #include "base/auto_reset.h"
8 #include "base/command_line.h" 8 #include "base/command_line.h"
9 #include "base/files/file_util.h" 9 #include "base/files/file_util.h"
10 #include "base/metrics/histogram.h" 10 #include "base/metrics/histogram.h"
(...skipping 1459 matching lines...) Expand 10 before | Expand all | Expand 10 after
1470 web_contents_->GetRenderWidgetHostView()); 1470 web_contents_->GetRenderWidgetHostView());
1471 if (view != NULL && !view->IsClosing()) 1471 if (view != NULL && !view->IsClosing())
1472 return true; 1472 return true;
1473 1473
1474 return false; 1474 return false;
1475 } 1475 }
1476 1476
1477 void WebContentsViewAura::OnCaptureLost() { 1477 void WebContentsViewAura::OnCaptureLost() {
1478 } 1478 }
1479 1479
1480 void WebContentsViewAura::OnPaint(gfx::Canvas* canvas) { 1480 void WebContentsViewAura::OnPaint(const ui::PaintContext& context) {
1481 } 1481 }
1482 1482
1483 void WebContentsViewAura::OnDeviceScaleFactorChanged( 1483 void WebContentsViewAura::OnDeviceScaleFactorChanged(
1484 float device_scale_factor) { 1484 float device_scale_factor) {
1485 } 1485 }
1486 1486
1487 void WebContentsViewAura::OnWindowDestroying(aura::Window* window) { 1487 void WebContentsViewAura::OnWindowDestroying(aura::Window* window) {
1488 // This means the destructor is going to be called soon. If there is an 1488 // This means the destructor is going to be called soon. If there is an
1489 // overscroll gesture in progress (i.e. |overscroll_window_| is not NULL), 1489 // overscroll gesture in progress (i.e. |overscroll_window_| is not NULL),
1490 // then destroying it in the WebContentsViewAura destructor can trigger other 1490 // then destroying it in the WebContentsViewAura destructor can trigger other
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after
1646 if (visible) { 1646 if (visible) {
1647 if (!web_contents_->should_normally_be_visible()) 1647 if (!web_contents_->should_normally_be_visible())
1648 web_contents_->WasShown(); 1648 web_contents_->WasShown();
1649 } else { 1649 } else {
1650 if (web_contents_->should_normally_be_visible()) 1650 if (web_contents_->should_normally_be_visible())
1651 web_contents_->WasHidden(); 1651 web_contents_->WasHidden();
1652 } 1652 }
1653 } 1653 }
1654 1654
1655 } // namespace content 1655 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/web_contents/web_contents_view_aura.h ('k') | ui/aura/bench/bench_main.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698