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/ui/views/frame/browser_view.h" | 5 #include "chrome/browser/ui/views/frame/browser_view.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 | 8 |
9 #include "base/auto_reset.h" | 9 #include "base/auto_reset.h" |
10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
118 #if defined(USE_AURA) | 118 #if defined(USE_AURA) |
119 #include "chrome/browser/ui/views/accelerator_table.h" | 119 #include "chrome/browser/ui/views/accelerator_table.h" |
120 #include "ui/gfx/screen.h" | 120 #include "ui/gfx/screen.h" |
121 #endif | 121 #endif |
122 | 122 |
123 #if defined(ENABLE_ONE_CLICK_SIGNIN) | 123 #if defined(ENABLE_ONE_CLICK_SIGNIN) |
124 #include "chrome/browser/ui/views/sync/one_click_signin_bubble_view.h" | 124 #include "chrome/browser/ui/views/sync/one_click_signin_bubble_view.h" |
125 #endif | 125 #endif |
126 | 126 |
127 using base::TimeDelta; | 127 using base::TimeDelta; |
| 128 using content::NativeWebKeyboardEvent; |
128 using content::SSLStatus; | 129 using content::SSLStatus; |
129 using content::UserMetricsAction; | 130 using content::UserMetricsAction; |
130 using content::WebContents; | 131 using content::WebContents; |
131 using views::ColumnSet; | 132 using views::ColumnSet; |
132 using views::GridLayout; | 133 using views::GridLayout; |
133 | 134 |
134 namespace { | 135 namespace { |
135 // The height of the status bubble. | 136 // The height of the status bubble. |
136 const int kStatusBubbleHeight = 20; | 137 const int kStatusBubbleHeight = 20; |
137 // The name of a key to store on the window handle so that other code can | 138 // The name of a key to store on the window handle so that other code can |
(...skipping 2269 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2407 return; | 2408 return; |
2408 | 2409 |
2409 PasswordGenerationBubbleView* bubble = | 2410 PasswordGenerationBubbleView* bubble = |
2410 new PasswordGenerationBubbleView(bounds, | 2411 new PasswordGenerationBubbleView(bounds, |
2411 this, | 2412 this, |
2412 web_contents->GetRenderViewHost()); | 2413 web_contents->GetRenderViewHost()); |
2413 views::BubbleDelegateView::CreateBubble(bubble); | 2414 views::BubbleDelegateView::CreateBubble(bubble); |
2414 bubble->SetAlignment(views::BubbleBorder::ALIGN_EDGE_TO_ANCHOR_EDGE); | 2415 bubble->SetAlignment(views::BubbleBorder::ALIGN_EDGE_TO_ANCHOR_EDGE); |
2415 bubble->Show(); | 2416 bubble->Show(); |
2416 } | 2417 } |
OLD | NEW |