OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 // Implementation of ChromeActiveDocument | 5 // Implementation of ChromeActiveDocument |
6 #include "chrome_frame/chrome_active_document.h" | 6 #include "chrome_frame/chrome_active_document.h" |
7 | 7 |
8 #include <hlink.h> | 8 #include <hlink.h> |
9 #include <htiface.h> | 9 #include <htiface.h> |
10 #include <initguid.h> | 10 #include <initguid.h> |
(...skipping 566 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
577 m_spInPlaceSite->GetWindowContext(in_place_frame_.Receive(), | 577 m_spInPlaceSite->GetWindowContext(in_place_frame_.Receive(), |
578 in_place_ui_window.Receive(), | 578 in_place_ui_window.Receive(), |
579 &position_rect, | 579 &position_rect, |
580 &clip_rect, | 580 &clip_rect, |
581 &frame_info_); | 581 &frame_info_); |
582 if (!m_bWndLess) { | 582 if (!m_bWndLess) { |
583 if (IsWindow()) { | 583 if (IsWindow()) { |
584 ::ShowWindow(m_hWnd, SW_SHOW); | 584 ::ShowWindow(m_hWnd, SW_SHOW); |
585 SetFocus(); | 585 SetFocus(); |
586 } else { | 586 } else { |
587 m_hWnd = Create(parent_window, position_rect, 0, 0, WS_EX_CLIENTEDGE); | 587 m_hWnd = Create(parent_window, position_rect); |
588 if (!IsWindow()) { | 588 if (!IsWindow()) { |
589 // This might happen if the automation server couldn't be | 589 // This might happen if the automation server couldn't be |
590 // instantiated. If so, a NOTREACHED() will have already been hit. | 590 // instantiated. If so, a NOTREACHED() will have already been hit. |
591 DLOG(ERROR) << "Failed to create Ax window"; | 591 DLOG(ERROR) << "Failed to create Ax window"; |
592 return AtlHresultFromLastError(); | 592 return AtlHresultFromLastError(); |
593 } | 593 } |
594 } | 594 } |
595 SetWindowDimensions(); | 595 SetWindowDimensions(); |
596 } | 596 } |
597 SetObjectRects(&position_rect, &clip_rect); | 597 SetObjectRects(&position_rect, &clip_rect); |
(...skipping 800 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1398 return true; | 1398 return true; |
1399 | 1399 |
1400 if (new_navigation_info.url != navigation_info_->url) | 1400 if (new_navigation_info.url != navigation_info_->url) |
1401 return true; | 1401 return true; |
1402 | 1402 |
1403 if (new_navigation_info.referrer != navigation_info_->referrer) | 1403 if (new_navigation_info.referrer != navigation_info_->referrer) |
1404 return true; | 1404 return true; |
1405 | 1405 |
1406 return false; | 1406 return false; |
1407 } | 1407 } |
OLD | NEW |