| 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_CHROMEOS_LOGIN_SIMPLE_WEB_VIEW_DIALOG_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_SIMPLE_WEB_VIEW_DIALOG_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_SIMPLE_WEB_VIEW_DIALOG_H_ | 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_SIMPLE_WEB_VIEW_DIALOG_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| 11 #include "chrome/browser/command_updater.h" | 11 #include "chrome/browser/command_updater.h" |
| 12 #include "chrome/browser/ui/toolbar/toolbar_model_delegate.h" | 12 #include "chrome/browser/ui/toolbar/toolbar_model_delegate.h" |
| 13 #include "chrome/browser/ui/views/location_bar/location_bar_view.h" | 13 #include "chrome/browser/ui/views/location_bar/location_bar_view.h" |
| 14 #include "content/public/browser/page_navigator.h" | 14 #include "content/public/browser/page_navigator.h" |
| 15 #include "content/public/browser/web_contents_delegate.h" | 15 #include "content/public/browser/web_contents_delegate.h" |
| 16 #include "googleurl/src/gurl.h" | 16 #include "googleurl/src/gurl.h" |
| 17 #include "ui/views/controls/button/image_button.h" | 17 #include "ui/views/controls/button/image_button.h" |
| 18 #include "ui/views/widget/widget_delegate.h" | 18 #include "ui/views/widget/widget_delegate.h" |
| 19 | 19 |
| 20 class Profile; | 20 class Profile; |
| 21 class ReloadButton; | 21 class ReloadButton; |
| 22 class TabContents; | 22 class TabContents; |
| 23 typedef TabContents TabContentsWrapper; | |
| 24 class ToolbarModel; | 23 class ToolbarModel; |
| 25 | 24 |
| 26 namespace views { | 25 namespace views { |
| 27 class WebView; | 26 class WebView; |
| 28 class Widget; | 27 class Widget; |
| 29 } | 28 } |
| 30 | 29 |
| 31 namespace chromeos { | 30 namespace chromeos { |
| 32 | 31 |
| 33 class StubBubbleModelDelegate; | 32 class StubBubbleModelDelegate; |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 104 scoped_ptr<ToolbarModel> toolbar_model_; | 103 scoped_ptr<ToolbarModel> toolbar_model_; |
| 105 scoped_ptr<CommandUpdater> command_updater_; | 104 scoped_ptr<CommandUpdater> command_updater_; |
| 106 | 105 |
| 107 // Controls | 106 // Controls |
| 108 views::ImageButton* back_; | 107 views::ImageButton* back_; |
| 109 views::ImageButton* forward_; | 108 views::ImageButton* forward_; |
| 110 ReloadButton* reload_; | 109 ReloadButton* reload_; |
| 111 LocationBarView* location_bar_; | 110 LocationBarView* location_bar_; |
| 112 views::WebView* web_view_; | 111 views::WebView* web_view_; |
| 113 // TODO: remove, needed to create a password manager for web_view_'s WC. | 112 // TODO: remove, needed to create a password manager for web_view_'s WC. |
| 114 scoped_ptr<TabContentsWrapper> wrapper_; | 113 scoped_ptr<TabContents> tab_contents_; |
| 115 | 114 |
| 116 // Contains |web_view_| while it isn't owned by the view. | 115 // Contains |web_view_| while it isn't owned by the view. |
| 117 scoped_ptr<views::WebView> web_view_container_; | 116 scoped_ptr<views::WebView> web_view_container_; |
| 118 | 117 |
| 119 scoped_ptr<StubBubbleModelDelegate> bubble_model_delegate_; | 118 scoped_ptr<StubBubbleModelDelegate> bubble_model_delegate_; |
| 120 | 119 |
| 121 DISALLOW_COPY_AND_ASSIGN(SimpleWebViewDialog); | 120 DISALLOW_COPY_AND_ASSIGN(SimpleWebViewDialog); |
| 122 }; | 121 }; |
| 123 | 122 |
| 124 } // chromeos | 123 } // chromeos |
| 125 | 124 |
| 126 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SIMPLE_WEB_VIEW_DIALOG_H_ | 125 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SIMPLE_WEB_VIEW_DIALOG_H_ |
| OLD | NEW |