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

Side by Side Diff: chrome/browser/chromeos/login/webui_login_view.h

Issue 8772041: Remove deprecated TabContentsDelegate::OpenURLFromTab variant (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 9 years 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_WEBUI_LOGIN_VIEW_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_WEBUI_LOGIN_VIEW_H_
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_WEBUI_LOGIN_VIEW_H_ 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_WEBUI_LOGIN_VIEW_H_
7 #pragma once 7 #pragma once
8 8
9 #include <map> 9 #include <map>
10 #include <string> 10 #include <string>
11 11
12 #include "chrome/browser/chromeos/login/login_html_dialog.h" 12 #include "chrome/browser/chromeos/login/login_html_dialog.h"
13 #include "chrome/browser/chromeos/status/status_area_button.h" 13 #include "chrome/browser/chromeos/status/status_area_button.h"
14 #include "chrome/browser/tab_first_render_watcher.h" 14 #include "chrome/browser/tab_first_render_watcher.h"
15 #include "chrome/browser/ui/views/unhandled_keyboard_event_handler.h" 15 #include "chrome/browser/ui/views/unhandled_keyboard_event_handler.h"
16 #include "content/browser/tab_contents/tab_contents_delegate.h" 16 #include "content/browser/tab_contents/tab_contents_delegate.h"
17 #include "ui/views/widget/widget_delegate.h" 17 #include "ui/views/widget/widget_delegate.h"
18 18
19 class DOMView; 19 class DOMView;
20 class GURL; 20 class GURL;
21 class StatusAreaView;
21 class WebUI; 22 class WebUI;
22 23
23 namespace views { 24 namespace views {
24 class View; 25 class View;
25 class Widget; 26 class Widget;
26 } 27 }
27 28
28 namespace chromeos { 29 namespace chromeos {
29 30
30 class StatusAreaViewChromeos;
31
32 // View used to render a WebUI supporting Widget. This widget is used for the 31 // View used to render a WebUI supporting Widget. This widget is used for the
33 // WebUI based start up and lock screens. It contains a StatusAreaView and 32 // WebUI based start up and lock screens. It contains a StatusAreaView and
34 // DOMView. 33 // DOMView.
35 class WebUILoginView : public views::WidgetDelegateView, 34 class WebUILoginView : public views::WidgetDelegateView,
36 public StatusAreaButton::Delegate, 35 public StatusAreaButton::Delegate,
37 public TabContentsDelegate, 36 public TabContentsDelegate,
38 public TabFirstRenderWatcher::Delegate { 37 public TabFirstRenderWatcher::Delegate {
39 public: 38 public:
40 static const int kStatusAreaCornerPadding; 39 static const int kStatusAreaCornerPadding;
41 40
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 virtual void ButtonVisibilityChanged(views::View* button_view) OVERRIDE; 87 virtual void ButtonVisibilityChanged(views::View* button_view) OVERRIDE;
89 88
90 // TabFirstRenderWatcher::Delegate implementation. 89 // TabFirstRenderWatcher::Delegate implementation.
91 virtual void OnRenderHostCreated(RenderViewHost* host) OVERRIDE; 90 virtual void OnRenderHostCreated(RenderViewHost* host) OVERRIDE;
92 virtual void OnTabMainFrameLoaded() OVERRIDE; 91 virtual void OnTabMainFrameLoaded() OVERRIDE;
93 virtual void OnTabMainFrameFirstRender() OVERRIDE; 92 virtual void OnTabMainFrameFirstRender() OVERRIDE;
94 93
95 // Creates and adds the status area (separate window). 94 // Creates and adds the status area (separate window).
96 virtual void InitStatusArea(); 95 virtual void InitStatusArea();
97 96
98 StatusAreaViewChromeos* status_area_; 97 StatusAreaView* status_area_;
99 98
100 // DOMView for rendering a webpage as a webui login. 99 // DOMView for rendering a webpage as a webui login.
101 DOMView* webui_login_; 100 DOMView* webui_login_;
102 101
103 private: 102 private:
104 // Map type for the accelerator-to-identifier map. 103 // Map type for the accelerator-to-identifier map.
105 typedef std::map<ui::Accelerator, std::string> AccelMap; 104 typedef std::map<ui::Accelerator, std::string> AccelMap;
106 105
107 // Overridden from TabContentsDelegate. 106 // Overridden from TabContentsDelegate.
108 virtual bool HandleContextMenu(const ContextMenuParams& params) OVERRIDE; 107 virtual bool HandleContextMenu(const ContextMenuParams& params) OVERRIDE;
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
140 139
141 // Caches StatusArea visibility setting before it has been initialized. 140 // Caches StatusArea visibility setting before it has been initialized.
142 bool status_area_visibility_on_init_; 141 bool status_area_visibility_on_init_;
143 142
144 DISALLOW_COPY_AND_ASSIGN(WebUILoginView); 143 DISALLOW_COPY_AND_ASSIGN(WebUILoginView);
145 }; 144 };
146 145
147 } // namespace chromeos 146 } // namespace chromeos
148 147
149 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_WEBUI_LOGIN_VIEW_H_ 148 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_WEBUI_LOGIN_VIEW_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/registration_screen.cc ('k') | chrome/browser/chromeos/login/webui_login_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698