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

Unified Diff: views/focus/focus_manager_unittest.cc

Issue 155668: Refactoring of tabbed-pane component so it can be ported to Linux toolkit_view (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 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
« no previous file with comments | « views/controls/tabbed_pane/tabbed_pane.cc ('k') | views/views.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: views/focus/focus_manager_unittest.cc
===================================================================
--- views/focus/focus_manager_unittest.cc (revision 20802)
+++ views/focus/focus_manager_unittest.cc (working copy)
@@ -21,8 +21,10 @@
#include "views/controls/combobox/native_combobox_wrapper.h"
#include "views/controls/label.h"
#include "views/controls/link.h"
+#include "views/controls/native_control.h"
#include "views/controls/scroll_view.h"
-#include "views/controls/tabbed_pane.h"
+#include "views/controls/tabbed_pane/native_tabbed_pane_wrapper.h"
+#include "views/controls/tabbed_pane/tabbed_pane.h"
#include "views/controls/textfield/textfield.h"
#include "views/widget/accelerator_handler.h"
#include "views/widget/root_view.h"
@@ -273,7 +275,7 @@
View* view = GetContentsView()->GetViewByID(id);
if (view)
return view;
- view = style_tab_->GetContentsRootView()->GetViewByID(id);
+ view = style_tab_->GetSelectedTab()->GetViewByID(id);
if (view)
return view;
view = search_border_view_->GetContentsRootView()->GetViewByID(id);
@@ -744,8 +746,8 @@
class TestTabbedPane : public TabbedPane {
public:
TestTabbedPane() { }
- virtual HWND TestGetNativeControlHWND() {
- return GetNativeControlHWND();
+ virtual HWND TestGetNativeComponent() {
+ return native_tabbed_pane_->GetTestingHandle();
}
};
@@ -785,7 +787,7 @@
::SendMessage(combobox->TestGetNativeComponent(), WM_SETFOCUS, NULL, NULL);
EXPECT_EQ(combobox, GetFocusManager()->GetFocusedView());
- ::SendMessage(tabbed_pane->TestGetNativeControlHWND(), WM_SETFOCUS,
+ ::SendMessage(tabbed_pane->TestGetNativeComponent(), WM_SETFOCUS,
NULL, NULL);
EXPECT_EQ(tabbed_pane, GetFocusManager()->GetFocusedView());
« no previous file with comments | « views/controls/tabbed_pane/tabbed_pane.cc ('k') | views/views.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698