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

Unified Diff: content/browser/renderer_host/render_widget_host_view_mac.mm

Issue 10696158: Rename WasRestored to WasShown across all uses. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Bring to ToT to commit Created 8 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 side-by-side diff with in-line comments
Download patch
Index: content/browser/renderer_host/render_widget_host_view_mac.mm
diff --git a/content/browser/renderer_host/render_widget_host_view_mac.mm b/content/browser/renderer_host/render_widget_host_view_mac.mm
index cb3ecf5cb2e6e14f873954cf6c5ea4f0da88b82e..7f3c8d95df26b8acaf5655a17977c5baab5a7871 100644
--- a/content/browser/renderer_host/render_widget_host_view_mac.mm
+++ b/content/browser/renderer_host/render_widget_host_view_mac.mm
@@ -377,7 +377,7 @@ RenderWidgetHost* RenderWidgetHostViewMac::GetRenderWidgetHost() const {
return render_widget_host_;
}
-void RenderWidgetHostViewMac::WasRestored() {
+void RenderWidgetHostViewMac::WasShown() {
if (!is_hidden_)
return;
@@ -388,7 +388,7 @@ void RenderWidgetHostViewMac::WasRestored() {
if (web_contents_switch_paint_time_.is_null())
web_contents_switch_paint_time_ = base::TimeTicks::Now();
is_hidden_ = false;
- render_widget_host_->WasRestored();
+ render_widget_host_->WasShown();
// We're messing with the window, so do this to ensure no flashes.
[[cocoa_view_ window] disableScreenUpdatesUntilFlush];
@@ -557,7 +557,7 @@ bool RenderWidgetHostViewMac::IsSurfaceAvailableForCopy() const {
void RenderWidgetHostViewMac::Show() {
[cocoa_view_ setHidden:NO];
- WasRestored();
+ WasShown();
}
void RenderWidgetHostViewMac::Hide() {
@@ -2057,7 +2057,7 @@ void RenderWidgetHostViewMac::SetTextInputActive(bool active) {
doubleValue];
if (newBackingScaleFactor != oldBackingScaleFactor) {
// Background tabs check if their scale factor changed when they become
- // active, in WasRestored().
+ // active, in WasShown().
// Allocating a CGLayerRef with the current scale factor immediately from
// this handler doesn't work. Schedule the backing store update on the
@@ -2997,8 +2997,8 @@ extern NSString *NSTextInputReplacementRangeAttributeName;
if (newWindow) {
// If we move into a new window, refresh the frame information. We
// don't need to do it if it was the same window as it used to be in,
- // since that case is covered by WasRestored(). We only want to
- // do this for real browser views, not popups.
+ // since that case is covered by WasShown(). We only want to do this for
+ // real browser views, not popups.
if (newWindow != lastWindow_) {
lastWindow_ = newWindow;
renderWidgetHostView_->WindowFrameChanged();

Powered by Google App Engine
This is Rietveld 408576698