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

Side by Side Diff: chrome/browser/ui/views/location_bar/content_setting_image_view.h

Issue 2668833003: DialogBrowserTest implementation to invoke Content settings bubble dialogs. (Closed)
Patch Set: Merged in suggestions from reviewers Created 3 years, 10 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_LOCATION_BAR_CONTENT_SETTING_IMAGE_VIEW_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_CONTENT_SETTING_IMAGE_VIEW_H_
6 #define CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_CONTENT_SETTING_IMAGE_VIEW_H_ 6 #define CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_CONTENT_SETTING_IMAGE_VIEW_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 30 matching lines...) Expand all
41 public: 41 public:
42 ContentSettingImageView(std::unique_ptr<ContentSettingImageModel> image_model, 42 ContentSettingImageView(std::unique_ptr<ContentSettingImageModel> image_model,
43 LocationBarView* parent, 43 LocationBarView* parent,
44 const gfx::FontList& font_list); 44 const gfx::FontList& font_list);
45 ~ContentSettingImageView() override; 45 ~ContentSettingImageView() override;
46 46
47 // Updates the decoration from the shown WebContents. 47 // Updates the decoration from the shown WebContents.
48 void Update(content::WebContents* web_contents); 48 void Update(content::WebContents* web_contents);
49 49
50 private: 50 private:
51
tapted 2017/02/07 01:23:32 nit: remove blank line
51 // The total animation time, including open and close as well as an 52 // The total animation time, including open and close as well as an
52 // intervening "stay open" period. 53 // intervening "stay open" period.
53 static const int kAnimationDurationMS; 54 static const int kAnimationDurationMS;
54 55
55 // IconLabelBubbleView: 56 // IconLabelBubbleView:
56 const char* GetClassName() const override; 57 const char* GetClassName() const override;
57 void OnBoundsChanged(const gfx::Rect& previous_bounds) override; 58 void OnBoundsChanged(const gfx::Rect& previous_bounds) override;
58 bool OnMousePressed(const ui::MouseEvent& event) override; 59 bool OnMousePressed(const ui::MouseEvent& event) override;
59 void OnMouseReleased(const ui::MouseEvent& event) override; 60 void OnMouseReleased(const ui::MouseEvent& event) override;
60 void OnGestureEvent(ui::GestureEvent* event) override; 61 void OnGestureEvent(ui::GestureEvent* event) override;
(...skipping 28 matching lines...) Expand all
89 90
90 // This is used to check if the bubble was showing during the mouse pressed 91 // This is used to check if the bubble was showing during the mouse pressed
91 // event. If this is true then the mouse released event is ignored to prevent 92 // event. If this is true then the mouse released event is ignored to prevent
92 // the bubble from reshowing. 93 // the bubble from reshowing.
93 bool suppress_mouse_released_action_; 94 bool suppress_mouse_released_action_;
94 95
95 DISALLOW_COPY_AND_ASSIGN(ContentSettingImageView); 96 DISALLOW_COPY_AND_ASSIGN(ContentSettingImageView);
96 }; 97 };
97 98
98 #endif // CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_CONTENT_SETTING_IMAGE_VIEW_H_ 99 #endif // CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_CONTENT_SETTING_IMAGE_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698