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

Unified Diff: views/focus/accelerator_handler_gtk_unittest.cc

Issue 7015051: Re-land: (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 7 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
« no previous file with comments | « views/examples/widget_example.cc ('k') | views/focus/focus_manager_gtk.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: views/focus/accelerator_handler_gtk_unittest.cc
===================================================================
--- views/focus/accelerator_handler_gtk_unittest.cc (revision 85284)
+++ views/focus/accelerator_handler_gtk_unittest.cc (working copy)
@@ -28,8 +28,7 @@
window_ = Window::CreateChromeWindow(
NULL, gfx::Rect(0, 0, 500, 500), this);
window_->Show();
- FocusManager* focus_manager = static_cast<WindowGtk*>(window_)->
- GetFocusManager();
+ FocusManager* focus_manager = window_->GetFocusManager();
focus_manager->RegisterAccelerator(kMenuAccelerator, this);
focus_manager->RegisterAccelerator(kHomepageAccelerator, this);
menu_pressed_ = false;
@@ -37,7 +36,7 @@
}
virtual void TearDown() {
- window_->CloseWindow();
+ window_->Close();
// Flush the message loop to make Purify happy.
message_loop_.RunAllPending();
« no previous file with comments | « views/examples/widget_example.cc ('k') | views/focus/focus_manager_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698