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

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

Issue 1858773006: [Extensions UI] Use the ExtensionMessageBubbleBridge for Views platforms (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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
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 #ifndef CHROME_BROWSER_UI_VIEWS_TOOLBAR_BROWSER_ACTIONS_CONTAINER_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_TOOLBAR_BROWSER_ACTIONS_CONTAINER_H_
6 #define CHROME_BROWSER_UI_VIEWS_TOOLBAR_BROWSER_ACTIONS_CONTAINER_H_ 6 #define CHROME_BROWSER_UI_VIEWS_TOOLBAR_BROWSER_ACTIONS_CONTAINER_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include <memory>
11
10 #include "base/macros.h" 12 #include "base/macros.h"
11 #include "base/observer_list.h" 13 #include "base/observer_list.h"
12 #include "chrome/browser/ui/toolbar/toolbar_actions_bar.h" 14 #include "chrome/browser/ui/toolbar/toolbar_actions_bar.h"
13 #include "chrome/browser/ui/toolbar/toolbar_actions_bar_delegate.h" 15 #include "chrome/browser/ui/toolbar/toolbar_actions_bar_delegate.h"
14 #include "chrome/browser/ui/views/toolbar/chevron_menu_button.h" 16 #include "chrome/browser/ui/views/toolbar/chevron_menu_button.h"
15 #include "chrome/browser/ui/views/toolbar/toolbar_action_view.h" 17 #include "chrome/browser/ui/views/toolbar/toolbar_action_view.h"
16 #include "ui/gfx/animation/animation_delegate.h" 18 #include "ui/gfx/animation/animation_delegate.h"
17 #include "ui/gfx/animation/slide_animation.h" 19 #include "ui/gfx/animation/slide_animation.h"
18 #include "ui/gfx/animation/tween.h" 20 #include "ui/gfx/animation/tween.h"
19 #include "ui/views/controls/resize_area_delegate.h" 21 #include "ui/views/controls/resize_area_delegate.h"
(...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after
232 void ResizeAndAnimate(gfx::Tween::Type tween_type, 234 void ResizeAndAnimate(gfx::Tween::Type tween_type,
233 int target_width, 235 int target_width,
234 bool suppress_chevron) override; 236 bool suppress_chevron) override;
235 void SetChevronVisibility(bool chevron_visible) override; 237 void SetChevronVisibility(bool chevron_visible) override;
236 int GetWidth(GetWidthTime get_width_time) const override; 238 int GetWidth(GetWidthTime get_width_time) const override;
237 bool IsAnimating() const override; 239 bool IsAnimating() const override;
238 void StopAnimating() override; 240 void StopAnimating() override;
239 int GetChevronWidth() const override; 241 int GetChevronWidth() const override;
240 void ShowToolbarActionBubble( 242 void ShowToolbarActionBubble(
241 std::unique_ptr<ToolbarActionsBarBubbleDelegate> controller) override; 243 std::unique_ptr<ToolbarActionsBarBubbleDelegate> controller) override;
242 void ShowExtensionMessageBubble(
243 std::unique_ptr<extensions::ExtensionMessageBubbleController> controller,
244 ToolbarActionViewController* anchor_action) override;
245 244
246 // views::WidgetObserver: 245 // views::WidgetObserver:
247 void OnWidgetClosing(views::Widget* widget) override; 246 void OnWidgetClosing(views::Widget* widget) override;
248 void OnWidgetDestroying(views::Widget* widget) override; 247 void OnWidgetDestroying(views::Widget* widget) override;
249 248
250 views::BubbleDelegateView* active_bubble() { return active_bubble_; } 249 views::BubbleDelegateView* active_bubble() { return active_bubble_; }
251 250
252 ChevronMenuButton* chevron_for_testing() { return chevron_; } 251 ChevronMenuButton* chevron_for_testing() { return chevron_; }
253 252
254 protected: 253 protected:
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
328 // is none. 327 // is none.
329 std::unique_ptr<DropPosition> drop_position_; 328 std::unique_ptr<DropPosition> drop_position_;
330 329
331 // The extension bubble that is actively showing, if any. 330 // The extension bubble that is actively showing, if any.
332 views::BubbleDelegateView* active_bubble_; 331 views::BubbleDelegateView* active_bubble_;
333 332
334 DISALLOW_COPY_AND_ASSIGN(BrowserActionsContainer); 333 DISALLOW_COPY_AND_ASSIGN(BrowserActionsContainer);
335 }; 334 };
336 335
337 #endif // CHROME_BROWSER_UI_VIEWS_TOOLBAR_BROWSER_ACTIONS_CONTAINER_H_ 336 #endif // CHROME_BROWSER_UI_VIEWS_TOOLBAR_BROWSER_ACTIONS_CONTAINER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698