| OLD | NEW |
| 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_SCRIPT_BUBBLE_ICON_VIEW_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_SCRIPT_BUBBLE_ICON_VIEW_H_ |
| 6 #define CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_SCRIPT_BUBBLE_ICON_VIEW_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_SCRIPT_BUBBLE_ICON_VIEW_H_ |
| 7 | 7 |
| 8 #include "chrome/browser/ui/views/location_bar/location_bar_view.h" | 8 #include "chrome/browser/ui/views/location_bar/location_bar_view.h" |
| 9 #include "chrome/browser/ui/views/location_bar/touchable_location_bar_view.h" | 9 #include "chrome/browser/ui/views/location_bar/touchable_location_bar_view.h" |
| 10 #include "ui/views/controls/image_view.h" | 10 #include "ui/views/controls/image_view.h" |
| (...skipping 24 matching lines...) Expand all Loading... |
| 35 // views::View methods. | 35 // views::View methods. |
| 36 virtual void Layout() OVERRIDE; | 36 virtual void Layout() OVERRIDE; |
| 37 | 37 |
| 38 // views::ImageView methods. | 38 // views::ImageView methods. |
| 39 virtual void GetAccessibleState(ui::AccessibleViewState* state) OVERRIDE; | 39 virtual void GetAccessibleState(ui::AccessibleViewState* state) OVERRIDE; |
| 40 virtual bool OnMousePressed(const ui::MouseEvent& event) OVERRIDE; | 40 virtual bool OnMousePressed(const ui::MouseEvent& event) OVERRIDE; |
| 41 virtual void OnMouseReleased(const ui::MouseEvent& event) OVERRIDE; | 41 virtual void OnMouseReleased(const ui::MouseEvent& event) OVERRIDE; |
| 42 virtual bool OnKeyPressed(const ui::KeyEvent& event) OVERRIDE; | 42 virtual bool OnKeyPressed(const ui::KeyEvent& event) OVERRIDE; |
| 43 | 43 |
| 44 // ui::EventHandler overrides: | 44 // ui::EventHandler overrides: |
| 45 virtual ui::EventResult OnGestureEvent(ui::GestureEvent* event) OVERRIDE; | 45 virtual void OnGestureEvent(ui::GestureEvent* event) OVERRIDE; |
| 46 | 46 |
| 47 // Shows the script bubble, anchored to anchor_view. | 47 // Shows the script bubble, anchored to anchor_view. |
| 48 void ShowScriptBubble(views::View* anchor_view, | 48 void ShowScriptBubble(views::View* anchor_view, |
| 49 content::WebContents* web_contents); | 49 content::WebContents* web_contents); |
| 50 | 50 |
| 51 // The location bar that owns us. | 51 // The location bar that owns us. |
| 52 LocationBarView::Delegate* location_bar_delegate_; | 52 LocationBarView::Delegate* location_bar_delegate_; |
| 53 | 53 |
| 54 // The last reported script count. | 54 // The last reported script count. |
| 55 size_t script_count_; | 55 size_t script_count_; |
| 56 | 56 |
| 57 DISALLOW_IMPLICIT_CONSTRUCTORS(ScriptBubbleIconView); | 57 DISALLOW_IMPLICIT_CONSTRUCTORS(ScriptBubbleIconView); |
| 58 }; | 58 }; |
| 59 | 59 |
| 60 #endif // CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_SCRIPT_BUBBLE_ICON_VIEW_H_ | 60 #endif // CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_SCRIPT_BUBBLE_ICON_VIEW_H_ |
| OLD | NEW |