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

Unified Diff: views/view_unittest.cc

Issue 140064: Revert :... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 6 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/view.cc ('k') | views/view_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: views/view_unittest.cc
===================================================================
--- views/view_unittest.cc (revision 18902)
+++ views/view_unittest.cc (working copy)
@@ -306,7 +306,7 @@
views::WidgetWin window;
window.set_delete_on_destroy(false);
window.set_window_style(WS_OVERLAPPEDWINDOW);
- window.Init(NULL, gfx::Rect(50, 50, 650, 650));
+ window.Init(NULL, gfx::Rect(50, 50, 650, 650), false);
RootView* root = window.GetRootView();
root->AddChildView(v1);
@@ -647,7 +647,7 @@
Clipboard clipboard;
WidgetWin* window = new WidgetWin;
- window->Init(NULL, gfx::Rect(0, 0, 100, 100));
+ window->Init(NULL, gfx::Rect(0, 0, 100, 100), true);
RootView* root_view = window->GetRootView();
Textfield* normal = new Textfield();
@@ -769,7 +769,7 @@
// Create a window and add the view as its child.
WidgetWin window;
- window.Init(NULL, gfx::Rect(0, 0, 100, 100));
+ window.Init(NULL, gfx::Rect(0, 0, 100, 100), true);
window.set_delete_on_destroy(false);
window.set_window_style(WS_OVERLAPPEDWINDOW);
RootView* root = window.GetRootView();
@@ -777,7 +777,7 @@
// Get the focus manager.
views::FocusManager* focus_manager =
- views::FocusManager::GetFocusManagerForNativeView(window.GetNativeView());
+ views::FocusManager::GetFocusManager(window.GetNativeView());
ASSERT_TRUE(focus_manager);
// Hit the return key and see if it takes effect.
@@ -1032,7 +1032,7 @@
dialog_view_);
window->Show();
native_window_ = window->GetNativeWindow();
- focus_manager_ = FocusManager::GetFocusManagerForNativeView(native_window_);
+ focus_manager_ = FocusManager::GetFocusManager(native_window_);
client_view_ =
static_cast<views::DialogClientView*>(window->GetClientView());
ok_button_ = client_view_->ok_button();
« no previous file with comments | « views/view.cc ('k') | views/view_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698