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

Side by Side Diff: views/controls/tree/tree_view.cc

Issue 6019007: Remove win_util::FormatMessage and FormatLastWin32Error. These were only used... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 11 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 | Annotate | Revision Log
« no previous file with comments | « views/controls/table/table_view.cc ('k') | views/focus/focus_util_win.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 "views/controls/tree/tree_view.h" 5 #include "views/controls/tree/tree_view.h"
6 6
7 #include <vector> 7 #include <vector>
8 8
9 #include "app/keyboard_code_conversion_win.h" 9 #include "app/keyboard_code_conversion_win.h"
10 #include "app/keyboard_codes.h" 10 #include "app/keyboard_codes.h"
11 #include "app/l10n_util_win.h" 11 #include "app/l10n_util_win.h"
12 #include "app/resource_bundle.h" 12 #include "app/resource_bundle.h"
13 #include "app/win/hwnd_util.h"
13 #include "base/i18n/rtl.h" 14 #include "base/i18n/rtl.h"
14 #include "base/logging.h" 15 #include "base/logging.h"
15 #include "base/stl_util-inl.h" 16 #include "base/stl_util-inl.h"
16 #include "base/win_util.h" 17 #include "base/win_util.h"
17 #include "gfx/canvas_skia.h" 18 #include "gfx/canvas_skia.h"
18 #include "gfx/canvas_skia_paint.h" 19 #include "gfx/canvas_skia_paint.h"
19 #include "gfx/favicon_size.h" 20 #include "gfx/favicon_size.h"
20 #include "gfx/icon_util.h" 21 #include "gfx/icon_util.h"
21 #include "gfx/point.h" 22 #include "gfx/point.h"
22 #include "grit/app_resources.h" 23 #include "grit/app_resources.h"
(...skipping 306 matching lines...) Expand 10 before | Expand all | Expand 10 after
329 if (lines_at_root_) 330 if (lines_at_root_)
330 style |= TVS_LINESATROOT; 331 style |= TVS_LINESATROOT;
331 tree_view_ = ::CreateWindowEx(WS_EX_CLIENTEDGE | GetAdditionalExStyle(), 332 tree_view_ = ::CreateWindowEx(WS_EX_CLIENTEDGE | GetAdditionalExStyle(),
332 WC_TREEVIEW, 333 WC_TREEVIEW,
333 L"", 334 L"",
334 style, 335 style,
335 0, 0, width(), height(), 336 0, 0, width(), height(),
336 parent_container, NULL, NULL, NULL); 337 parent_container, NULL, NULL, NULL);
337 SetWindowLongPtr(tree_view_, GWLP_USERDATA, 338 SetWindowLongPtr(tree_view_, GWLP_USERDATA,
338 reinterpret_cast<LONG_PTR>(&wrapper_)); 339 reinterpret_cast<LONG_PTR>(&wrapper_));
339 original_handler_ = win_util::SetWindowProc(tree_view_, 340 original_handler_ = app::win::SetWindowProc(tree_view_, &TreeWndProc);
340 &TreeWndProc);
341 l10n_util::AdjustUIFontForWindow(tree_view_); 341 l10n_util::AdjustUIFontForWindow(tree_view_);
342 342
343 if (model_) { 343 if (model_) {
344 CreateRootItems(); 344 CreateRootItems();
345 model_->AddObserver(this); 345 model_->AddObserver(this);
346 image_list_ = CreateImageList(); 346 image_list_ = CreateImageList();
347 TreeView_SetImageList(tree_view_, image_list_, TVSIL_NORMAL); 347 TreeView_SetImageList(tree_view_, image_list_, TVSIL_NORMAL);
348 } 348 }
349 349
350 // Bug 964884: detach the IME attached to this window. 350 // Bug 964884: detach the IME attached to this window.
(...skipping 408 matching lines...) Expand 10 before | Expand all | Expand 10 after
759 } 759 }
760 // Fall through and let the default handler process as well. 760 // Fall through and let the default handler process as well.
761 break; 761 break;
762 } 762 }
763 WNDPROC handler = tree->original_handler_; 763 WNDPROC handler = tree->original_handler_;
764 DCHECK(handler); 764 DCHECK(handler);
765 return CallWindowProc(handler, window, message, w_param, l_param); 765 return CallWindowProc(handler, window, message, w_param, l_param);
766 } 766 }
767 767
768 } // namespace views 768 } // namespace views
OLDNEW
« no previous file with comments | « views/controls/table/table_view.cc ('k') | views/focus/focus_util_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698