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 #include "chrome/browser/chromeos/login/html_page_screen.h" | 5 #include "chrome/browser/chromeos/login/html_page_screen.h" |
6 | 6 |
7 #include "base/string_util.h" | 7 #include "base/string_util.h" |
8 #include "base/utf_string_conversions.h" | 8 #include "base/utf_string_conversions.h" |
9 #include "chrome/browser/chromeos/login/screen_observer.h" | 9 #include "chrome/browser/chromeos/login/screen_observer.h" |
10 #include "chrome/browser/profiles/profile_manager.h" | 10 #include "chrome/browser/profiles/profile_manager.h" |
11 #include "content/public/browser/render_view_host.h" | 11 #include "content/public/browser/render_view_host.h" |
12 #include "content/public/browser/site_instance.h" | 12 #include "content/public/browser/site_instance.h" |
13 #include "googleurl/src/gurl.h" | 13 #include "googleurl/src/gurl.h" |
14 #include "ui/views/events/event.h" | 14 #include "ui/views/events/event.h" |
15 | 15 |
| 16 using content::NativeWebKeyboardEvent; |
16 using content::SiteInstance; | 17 using content::SiteInstance; |
17 using content::WebContents; | 18 using content::WebContents; |
18 | 19 |
19 namespace chromeos { | 20 namespace chromeos { |
20 | 21 |
21 /////////////////////////////////////////////////////////////////////////////// | 22 /////////////////////////////////////////////////////////////////////////////// |
22 // HTMLPageView | 23 // HTMLPageView |
23 HTMLPageView::HTMLPageView(content::BrowserContext* browser_context) | 24 HTMLPageView::HTMLPageView(content::BrowserContext* browser_context) |
24 : dom_view_(new WebPageDomView(browser_context)) { | 25 : dom_view_(new WebPageDomView(browser_context)) { |
25 } | 26 } |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
72 } | 73 } |
73 | 74 |
74 /////////////////////////////////////////////////////////////////////////////// | 75 /////////////////////////////////////////////////////////////////////////////// |
75 // HTMLPageScreen, private: | 76 // HTMLPageScreen, private: |
76 void HTMLPageScreen::CloseScreen(ScreenObserver::ExitCodes code) { | 77 void HTMLPageScreen::CloseScreen(ScreenObserver::ExitCodes code) { |
77 StopTimeoutTimer(); | 78 StopTimeoutTimer(); |
78 delegate()->GetObserver()->OnExit(code); | 79 delegate()->GetObserver()->OnExit(code); |
79 } | 80 } |
80 | 81 |
81 } // namespace chromeos | 82 } // namespace chromeos |
OLD | NEW |