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

Side by Side Diff: content/browser/renderer_host/render_widget_host_view_android.cc

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, 4 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
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/renderer_host/render_widget_host_view_android.h" 5 #include "content/browser/renderer_host/render_widget_host_view_android.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "base/message_loop.h" 8 #include "base/message_loop.h"
9 #include "base/utf_string_conversions.h" 9 #include "base/utf_string_conversions.h"
10 #include "content/browser/android/content_view_core_impl.h" 10 #include "content/browser/android/content_view_core_impl.h"
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 void RenderWidgetHostViewAndroid::InitAsFullscreen( 46 void RenderWidgetHostViewAndroid::InitAsFullscreen(
47 RenderWidgetHostView* reference_host_view) { 47 RenderWidgetHostView* reference_host_view) {
48 NOTIMPLEMENTED(); 48 NOTIMPLEMENTED();
49 } 49 }
50 50
51 RenderWidgetHost* 51 RenderWidgetHost*
52 RenderWidgetHostViewAndroid::GetRenderWidgetHost() const { 52 RenderWidgetHostViewAndroid::GetRenderWidgetHost() const {
53 return host_; 53 return host_;
54 } 54 }
55 55
56 void RenderWidgetHostViewAndroid::WasRestored() { 56 void RenderWidgetHostViewAndroid::WasShown() {
57 if (!is_hidden_) 57 if (!is_hidden_)
58 return; 58 return;
59 is_hidden_ = false; 59 is_hidden_ = false;
60 host_->WasRestored(); 60 host_->WasShown();
61 } 61 }
62 62
63 void RenderWidgetHostViewAndroid::WasHidden() { 63 void RenderWidgetHostViewAndroid::WasHidden() {
64 if (is_hidden_) 64 if (is_hidden_)
65 return; 65 return;
66 66
67 // If we receive any more paint messages while we are hidden, we want to 67 // If we receive any more paint messages while we are hidden, we want to
68 // ignore them so we don't re-allocate the backing store. We will paint 68 // ignore them so we don't re-allocate the backing store. We will paint
69 // everything again when we become visible again. 69 // everything again when we become visible again.
70 // 70 //
(...skipping 289 matching lines...) Expand 10 before | Expand all | Expand 10 after
360 // RenderWidgetHostView, public: 360 // RenderWidgetHostView, public:
361 361
362 // static 362 // static
363 RenderWidgetHostView* 363 RenderWidgetHostView*
364 RenderWidgetHostView::CreateViewForWidget(RenderWidgetHost* widget) { 364 RenderWidgetHostView::CreateViewForWidget(RenderWidgetHost* widget) {
365 RenderWidgetHostImpl* rwhi = RenderWidgetHostImpl::From(widget); 365 RenderWidgetHostImpl* rwhi = RenderWidgetHostImpl::From(widget);
366 return new RenderWidgetHostViewAndroid(rwhi, NULL); 366 return new RenderWidgetHostViewAndroid(rwhi, NULL);
367 } 367 }
368 368
369 } // namespace content 369 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698