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

Side by Side Diff: chrome/browser/ui/views/toolbar/browser_actions_container.cc

Issue 766263003: [Extension Toolbar] Refactor and finish pop out logic for actions (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Sky's + OWNERS Created 6 years 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/toolbar/browser_actions_container.h" 5 #include "chrome/browser/ui/views/toolbar/browser_actions_container.h"
6 6
7 #include "base/compiler_specific.h" 7 #include "base/compiler_specific.h"
8 #include "base/stl_util.h" 8 #include "base/stl_util.h"
9 #include "chrome/browser/extensions/tab_helper.h" 9 #include "chrome/browser/extensions/tab_helper.h"
10 #include "chrome/browser/profiles/profile.h" 10 #include "chrome/browser/profiles/profile.h"
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 size_t row, size_t icon_in_row) 59 size_t row, size_t icon_in_row)
60 : row(row), icon_in_row(icon_in_row) { 60 : row(row), icon_in_row(icon_in_row) {
61 } 61 }
62 62
63 //////////////////////////////////////////////////////////////////////////////// 63 ////////////////////////////////////////////////////////////////////////////////
64 // BrowserActionsContainer 64 // BrowserActionsContainer
65 65
66 BrowserActionsContainer::BrowserActionsContainer( 66 BrowserActionsContainer::BrowserActionsContainer(
67 Browser* browser, 67 Browser* browser,
68 BrowserActionsContainer* main_container) 68 BrowserActionsContainer* main_container)
69 : toolbar_actions_bar_(new ToolbarActionsBar(this, 69 : toolbar_actions_bar_(new ToolbarActionsBar(
70 browser, 70 this,
71 main_container != nullptr)), 71 browser,
72 main_container ?
73 main_container->toolbar_actions_bar_.get() : nullptr)),
72 browser_(browser), 74 browser_(browser),
73 main_container_(main_container), 75 main_container_(main_container),
74 popup_owner_(NULL), 76 popup_owner_(NULL),
75 container_width_(0), 77 container_width_(0),
76 resize_area_(NULL), 78 resize_area_(NULL),
77 chevron_(NULL), 79 chevron_(NULL),
78 suppress_chevron_(false), 80 suppress_chevron_(false),
79 added_to_view_(false), 81 added_to_view_(false),
80 resize_amount_(0), 82 resize_amount_(0),
81 animation_target_size_(0) { 83 animation_target_size_(0) {
(...skipping 668 matching lines...) Expand 10 before | Expand all | Expand 10 after
750 752
751 ui::ThemeProvider* tp = GetThemeProvider(); 753 ui::ThemeProvider* tp = GetThemeProvider();
752 if (tp && chevron_) { 754 if (tp && chevron_) {
753 chevron_->SetImage(views::Button::STATE_NORMAL, 755 chevron_->SetImage(views::Button::STATE_NORMAL,
754 *tp->GetImageSkiaNamed(IDR_BROWSER_ACTIONS_OVERFLOW)); 756 *tp->GetImageSkiaNamed(IDR_BROWSER_ACTIONS_OVERFLOW));
755 } 757 }
756 758
757 const int kImages[] = IMAGE_GRID(IDR_DEVELOPER_MODE_HIGHLIGHT); 759 const int kImages[] = IMAGE_GRID(IDR_DEVELOPER_MODE_HIGHLIGHT);
758 highlight_painter_.reset(views::Painter::CreateImageGridPainter(kImages)); 760 highlight_painter_.reset(views::Painter::CreateImageGridPainter(kImages));
759 } 761 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698