OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 "chrome/browser/ui/views/wrench_menu.h" | 5 #include "chrome/browser/ui/views/wrench_menu.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <cmath> | 8 #include <cmath> |
9 #include <set> | 9 #include <set> |
10 | 10 |
(...skipping 876 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
887 // TODO(oshima): Replace with views only API. | 887 // TODO(oshima): Replace with views only API. |
888 views::Widget* parent = views::Widget::GetWidgetForNativeWindow( | 888 views::Widget* parent = views::Widget::GetWidgetForNativeWindow( |
889 browser_->window()->GetNativeHandle()); | 889 browser_->window()->GetNativeHandle()); |
890 bookmark_menu_delegate_.reset( | 890 bookmark_menu_delegate_.reset( |
891 new BookmarkMenuDelegate(browser_->profile(), | 891 new BookmarkMenuDelegate(browser_->profile(), |
892 NULL, | 892 NULL, |
893 parent, | 893 parent, |
894 first_bookmark_command_id_)); | 894 first_bookmark_command_id_)); |
895 bookmark_menu_delegate_->Init( | 895 bookmark_menu_delegate_->Init( |
896 this, bookmark_menu_, model->bookmark_bar_node(), 0, | 896 this, bookmark_menu_, model->bookmark_bar_node(), 0, |
897 BookmarkMenuDelegate::SHOW_OTHER_FOLDER, | 897 BookmarkMenuDelegate::SHOW_PERMANENT_FOLDERS, |
898 bookmark_utils::LAUNCH_WRENCH_MENU); | 898 bookmark_utils::LAUNCH_WRENCH_MENU); |
899 } | 899 } |
OLD | NEW |