OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_INSTANT_INSTANT_OVERLAY_H_ | 5 #ifndef CHROME_BROWSER_UI_SEARCH_INSTANT_OVERLAY_H_ |
6 #define CHROME_BROWSER_INSTANT_INSTANT_OVERLAY_H_ | 6 #define CHROME_BROWSER_UI_SEARCH_INSTANT_OVERLAY_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
11 #include "base/compiler_specific.h" | 11 #include "base/compiler_specific.h" |
12 #include "base/gtest_prod_util.h" | 12 #include "base/gtest_prod_util.h" |
13 #include "base/memory/scoped_ptr.h" | 13 #include "base/memory/scoped_ptr.h" |
14 #include "chrome/browser/history/history_types.h" | 14 #include "chrome/browser/history/history_types.h" |
15 #include "chrome/browser/instant/instant_controller.h" | 15 #include "chrome/browser/ui/search/instant_controller.h" |
16 #include "chrome/browser/instant/instant_loader.h" | 16 #include "chrome/browser/ui/search/instant_loader.h" |
17 #include "chrome/browser/instant/instant_page.h" | 17 #include "chrome/browser/ui/search/instant_page.h" |
18 | 18 |
19 class Profile; | 19 class Profile; |
20 | 20 |
21 namespace content { | 21 namespace content { |
22 class WebContents; | 22 class WebContents; |
23 } | 23 } |
24 | 24 |
25 // InstantOverlay is used to communicate with an overlay WebContents that it | 25 // InstantOverlay is used to communicate with an overlay WebContents that it |
26 // owns and loads the "Instant URL" into. This overlay can appear and disappear | 26 // owns and loads the "Instant URL" into. This overlay can appear and disappear |
27 // at will as the user types in the omnibox. | 27 // at will as the user types in the omnibox. |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
108 | 108 |
109 InstantLoader loader_; | 109 InstantLoader loader_; |
110 const std::string instant_url_; | 110 const std::string instant_url_; |
111 bool is_stale_; | 111 bool is_stale_; |
112 bool is_pointer_down_from_activate_; | 112 bool is_pointer_down_from_activate_; |
113 history::HistoryAddPageArgs last_navigation_; | 113 history::HistoryAddPageArgs last_navigation_; |
114 | 114 |
115 DISALLOW_COPY_AND_ASSIGN(InstantOverlay); | 115 DISALLOW_COPY_AND_ASSIGN(InstantOverlay); |
116 }; | 116 }; |
117 | 117 |
118 #endif // CHROME_BROWSER_INSTANT_INSTANT_OVERLAY_H_ | 118 #endif // CHROME_BROWSER_UI_SEARCH_INSTANT_OVERLAY_H_ |
OLD | NEW |