| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_EXTENSIONS_BOOKMARK_APP_BUBBLE_VIEW_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_EXTENSIONS_BOOKMARK_APP_BUBBLE_VIEW_H_ |
| 6 #define CHROME_BROWSER_UI_VIEWS_EXTENSIONS_BOOKMARK_APP_BUBBLE_VIEW_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_EXTENSIONS_BOOKMARK_APP_BUBBLE_VIEW_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "base/strings/string16.h" | 9 #include "base/strings/string16.h" |
| 10 #include "chrome/browser/ui/browser_window.h" | 10 #include "chrome/browser/ui/browser_window.h" |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 48 | 48 |
| 49 // Overriden from views::BubbleDelegateView: | 49 // Overriden from views::BubbleDelegateView: |
| 50 void Init() override; | 50 void Init() override; |
| 51 views::View* GetInitiallyFocusedView() override; | 51 views::View* GetInitiallyFocusedView() override; |
| 52 | 52 |
| 53 // Overridden from views::WidgetDelegate: | 53 // Overridden from views::WidgetDelegate: |
| 54 void WindowClosing() override; | 54 void WindowClosing() override; |
| 55 | 55 |
| 56 // Overridden from views::View: | 56 // Overridden from views::View: |
| 57 bool AcceleratorPressed(const ui::Accelerator& accelerator) override; | 57 bool AcceleratorPressed(const ui::Accelerator& accelerator) override; |
| 58 void GetAccessibleState(ui::AXViewState* state) override; |
| 58 gfx::Size GetMinimumSize() const override; | 59 gfx::Size GetMinimumSize() const override; |
| 59 | 60 |
| 60 // Overridden from views::ButtonListener: | 61 // Overridden from views::ButtonListener: |
| 61 // Closes the bubble or opens the edit dialog. | 62 // Closes the bubble or opens the edit dialog. |
| 62 void ButtonPressed(views::Button* sender, const ui::Event& event) override; | 63 void ButtonPressed(views::Button* sender, const ui::Event& event) override; |
| 63 | 64 |
| 64 // Overridden from views::TextfieldController: | 65 // Overridden from views::TextfieldController: |
| 65 void ContentsChanged(views::Textfield* sender, | 66 void ContentsChanged(views::Textfield* sender, |
| 66 const base::string16& new_contents) override; | 67 const base::string16& new_contents) override; |
| 67 | 68 |
| (...skipping 27 matching lines...) Expand all Loading... |
| 95 // Textfield showing the title of the app. | 96 // Textfield showing the title of the app. |
| 96 views::Textfield* title_tf_; | 97 views::Textfield* title_tf_; |
| 97 | 98 |
| 98 // Image showing the icon of the app. | 99 // Image showing the icon of the app. |
| 99 views::ImageView* icon_image_view_; | 100 views::ImageView* icon_image_view_; |
| 100 | 101 |
| 101 DISALLOW_COPY_AND_ASSIGN(BookmarkAppBubbleView); | 102 DISALLOW_COPY_AND_ASSIGN(BookmarkAppBubbleView); |
| 102 }; | 103 }; |
| 103 | 104 |
| 104 #endif // CHROME_BROWSER_UI_VIEWS_EXTENSIONS_BOOKMARK_APP_BUBBLE_VIEW_H_ | 105 #endif // CHROME_BROWSER_UI_VIEWS_EXTENSIONS_BOOKMARK_APP_BUBBLE_VIEW_H_ |
| OLD | NEW |