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

Side by Side Diff: content/browser/renderer_host/render_widget_host_view_gtk.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_gtk.h" 5 #include "content/browser/renderer_host/render_widget_host_view_gtk.h"
6 6
7 // If this gets included after the gtk headers, then a bunch of compiler 7 // If this gets included after the gtk headers, then a bunch of compiler
8 // errors happen because of a "#define Status int" in Xlib.h, which interacts 8 // errors happen because of a "#define Status int" in Xlib.h, which interacts
9 // badly with net::URLRequestStatus::Status. 9 // badly with net::URLRequestStatus::Status.
10 #include "content/common/view_messages.h" 10 #include "content/common/view_messages.h"
(...skipping 676 matching lines...) Expand 10 before | Expand all | Expand 10 after
687 gtk_window_move(window, bounds.x(), bounds.y()); 687 gtk_window_move(window, bounds.x(), bounds.y());
688 gtk_window_resize(window, bounds.width(), bounds.height()); 688 gtk_window_resize(window, bounds.width(), bounds.height());
689 gtk_window_fullscreen(window); 689 gtk_window_fullscreen(window);
690 DoPopupOrFullscreenInit(window, bounds); 690 DoPopupOrFullscreenInit(window, bounds);
691 } 691 }
692 692
693 RenderWidgetHost* RenderWidgetHostViewGtk::GetRenderWidgetHost() const { 693 RenderWidgetHost* RenderWidgetHostViewGtk::GetRenderWidgetHost() const {
694 return host_; 694 return host_;
695 } 695 }
696 696
697 void RenderWidgetHostViewGtk::WasRestored() { 697 void RenderWidgetHostViewGtk::WasShown() {
698 if (!is_hidden_) 698 if (!is_hidden_)
699 return; 699 return;
700 700
701 if (web_contents_switch_paint_time_.is_null()) 701 if (web_contents_switch_paint_time_.is_null())
702 web_contents_switch_paint_time_ = base::TimeTicks::Now(); 702 web_contents_switch_paint_time_ = base::TimeTicks::Now();
703 is_hidden_ = false; 703 is_hidden_ = false;
704 host_->WasRestored(); 704 host_->WasShown();
705 } 705 }
706 706
707 void RenderWidgetHostViewGtk::WasHidden() { 707 void RenderWidgetHostViewGtk::WasHidden() {
708 if (is_hidden_) 708 if (is_hidden_)
709 return; 709 return;
710 710
711 // If we receive any more paint messages while we are hidden, we want to 711 // If we receive any more paint messages while we are hidden, we want to
712 // ignore them so we don't re-allocate the backing store. We will paint 712 // ignore them so we don't re-allocate the backing store. We will paint
713 // everything again when we become selected again. 713 // everything again when we become selected again.
714 is_hidden_ = true; 714 is_hidden_ = true;
(...skipping 832 matching lines...) Expand 10 before | Expand all | Expand 10 after
1547 this)); 1547 this));
1548 } 1548 }
1549 BrowserAccessibilityGtk* root = 1549 BrowserAccessibilityGtk* root =
1550 browser_accessibility_manager_->GetRoot()->ToBrowserAccessibilityGtk(); 1550 browser_accessibility_manager_->GetRoot()->ToBrowserAccessibilityGtk();
1551 1551
1552 atk_object_set_role(root->GetAtkObject(), ATK_ROLE_HTML_CONTAINER); 1552 atk_object_set_role(root->GetAtkObject(), ATK_ROLE_HTML_CONTAINER);
1553 return root->GetAtkObject(); 1553 return root->GetAtkObject();
1554 } 1554 }
1555 1555
1556 } // namespace content 1556 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698